where root represents the database user name, mypassword represents the password of root, database represents the name of the database to be imported, and a.sql represents the file name of the database file."/> where root represents the database user name, mypassword represents the password of root, database represents the name of the database to be imported, and a.sql represents the file name of the database file.">

Home  >  Article  >  Backend Development  >  phpmyadmin configuration How to import large amounts of data in sql statement format in phpmyadmin

phpmyadmin configuration How to import large amounts of data in sql statement format in phpmyadmin

WBOY
WBOYOriginal
2016-07-29 08:42:581047browse

The content of the sql.php file is as follows:

Copy the code The code is as follows:


system("mysql -uroot -pmypassword database < a.sql");
print "sql ok";
?>


where root represents the database user name, mypassword represents the password of root, database represents the name of the database to be imported, and a.sql represents the file name of the database file.

The above introduces the method of configuring phpmyadmin to import a large amount of data in sql statement format in phpmyadmin, including the configuration of phpmyadmin. I hope it will be helpful to friends who are interested in PHP tutorials.

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