Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automate the exportation of a mySQL database using phpMyAdmin

Is it possible to automate the exportation of a single db using phpMyAdmin?

When I try creating the .sql file from an external script, like php, the resulting .sql file looks clean, but when imported causes problems in the application.

When I use phpMyAdmin to create a similar .sql file by using Export, the resulting .sql file Imports without causing any issues to my application.

The application is moodle 2.2, the MySQL version is 5.5, the phpMyAdmin version is 3.4.10.

like image 845
jamesTheProgrammer Avatar asked Mar 30 '12 15:03

jamesTheProgrammer


1 Answers

The best option is to make a script that executes database export with mysqldump and after that a cronjob to execute that script.

like image 87
edelgado Avatar answered Sep 28 '22 11:09

edelgado