Home  >  Article  >  Backend Development  >  phpmyadmin里面导入sql语句格式的大量数据的方法_php技巧

phpmyadmin里面导入sql语句格式的大量数据的方法_php技巧

WBOY
WBOYOriginal
2016-05-17 09:24:541062browse

sql.php文件的内容如下:

复制代码 代码如下:


system("mysql -uroot -pmypassword database print "sql ok";
?>

其中root表示数据库用户名,mypassword表示root的密码,database表示要导入的数据库的名字,a.sql表示数据库文件的文件名
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn