How to do automatic mysql db backup using mysql workbench

Wern Ancheta picture Wern Ancheta · Dec 26, 2010 · Viewed 31.8k times · Source

How to do automatic mysql db backup using mysql workbench?

alt text

Is it possible?

Answer

ajreal picture ajreal · Dec 26, 2010

Mysql bench is not required for automatic backup,
setup a crontab and use mysqldump (or equivalent) will do the same job and is easier.

example:

crontab -e

/* backup every day at 00:00:00 */
0 0 * * * mysqldump -u root -ppassword YOUR_DATABASE > /backup/YOUR_DATABASE.sql