The content of the sql.php file is as follows:
Copy code The code is as follows:
system("mysql -uroot -pmypassword database < a.sql");
print "sql ok";
?>
where root represents the database user name and mypassword represents the root password, database represents the name of the database to be imported, and a.sql represents the file name of the database file.
http://www.bkjia.com/PHPjc/321994.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321994.htmlTechArticleThe contents of the sql.php file are as follows: Copy the code as follows: ? system("mysql -uroot -pmypassword database a .sql"); print "sql ok"; ? Where root represents the database user name, mypassword represents...