RE: Exporting database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Can someone tell me where can I find a function or class
> for export MySQL database (structure & data ) into text file ?

>From the system prompt:

path/to/mysql/bin/mysqldump -uuser -ppassword database_name >
filename.sql

will dump the entire database to an SQL file.

mysqldump --help

For more info. If you need to do this from within PHP, use an exec()
call.

---John Holmes...



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux