How to do automatic mysql db backup using mysql workbench

一曲冷凌霜 提交于 2019-12-12 08:13:14

问题


How to do automatic mysql db backup using mysql workbench?

Is it possible?


回答1:


If you have a webserver with PHP I'd suggest MySqlDumper

It supports:

  • Automatic backups
  • Emails backups
  • Compresses backups
  • Rotates backups
  • etc.



回答2:


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



回答3:


ATM scheduled backups are not plannned in Workbench: http://bugs.mysql.com/bug.php?id=50074

At the same time Workbench is designed to have powerful scripting shell, so you can try to investigate what commands can be used for backup and call them directly from shell. (But I agree this is too general idea):

http://dev.mysql.com/doc/workbench/en/wb-extending.html



来源:https://stackoverflow.com/questions/4532649/how-to-do-automatic-mysql-db-backup-using-mysql-workbench

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!