0

Possible Duplicate:
Best practice: Import mySQL file in PHP; split queries

How to import import *.sql file into database and export db to *.sql file in php coding?

0

1 Answer 1

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

https://www.php.net/manual/en/function.exec.php

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.