Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-29 08:42:58
Original
1065 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template