开发者

php code to mysql database export [duplicate]

开发者 https://www.devze.com 2022-12-23 13:31 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: Best practice: Import mySQL file in PHP; split queries
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Best practice: Import mySQL file in PHP; split queries

How to import import *.sql file into dat开发者_如何学Goabase and export db to *.sql file in php coding?


exec("mysqldump database -u username -p password  > output.sql");

http://ca3.php.net/manual/en/function.exec.php

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号