jeudi 16 avril 2015

Mysqldump in amazon using PHP

I want to have a database backup our database is hosted in amazon rds. My problem in everytime i run my PHP script it generates an sql file but it is empty.


Here is my code:



exec("/usr/bin/mysqldump -u *username* -p *password* | gzip > /var/www/html/db-backup/testdb.sql.gz");




Aucun commentaire:

Enregistrer un commentaire