可能的重复:
最佳实践:在 PHP 中导入 mySQL 文件;分割查询 https://stackoverflow.com/questions/1883079/best-practice-import-mysql-file-in-php-split-queries
如何在php编码中将导入*.sql文件导入数据库并将db导出到*.sql文件?
exec("mysqldump database -u username -p password > output.sql");
https://www.php.net/manual/en/function.exec.php https://www.php.net/manual/en/function.exec.php
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)