Page 1 of 1

PHP + MySql

Posted: Mon Oct 10, 2005 1:30 am
by alexmaster_2004
Hi
i want to know how to make php script that backup my database.
Thanks

Posted: Mon Oct 10, 2005 8:03 pm
by Skara
if you have phpMyAdmin, it'll do it for you. It's under "export."

Posted: Mon Oct 10, 2005 9:07 pm
by alexmaster_2004
Hi
No i want to do the backup process from a php script .
i have get to what seemed a solution but i don't know if it will
run or not.
i used exec()
to execute the following command:
exec("/usr/bin/mysqldump --user USER --password=PASS DATABASENAME> /PATHTOSAVE/BACKUP.SQL");
but i didn't get anything and don't know if the fuction had executed or not.
i hope anyone could help
Thanks