大家好,我正在使用MySQL Workbench。是否有一种方法可以使用它来自动备份我的数据库?
截至6.2版本,MySQL Workbench中没有备份调度/自动化选项。您可以通过在Management下点击DataExport来手动备份6.x版本。具体请参见以下内容:
http://community.discountasp.net/showthread.php?t=11972
在MySQL Workbench中备份是一个相当简单的任务,但第一次可能很难找到确切的位置。通常情况下,在MySQL Workbench中工作时,您将使用SQL开发部分。但是,为了导出备份,您必须转到服务器管理部分。Click the Data Dump tab to access the export utility.
Check the box for the database you want to back up
Choose Export to Self-Contained File and make sure the path is correct.
Hit the Start Export button.
编辑: 我正在使用MySQL管理员,它有计划选项。也请检查这个:
http://www.davecolorado.com/index.php/scheduled-backup-with-mysql-administrator-on-windows/
你可以在 MySql Workbench
中使用“创建事件”来创建自动备份。示例代码:
CREATE EVENT IF NOT EXISTS test_event_01
ON SCHEDULE AT CURRENT_TIMESTAMP
DO
INSERT INTO messages(message,created_at)
VALUES('Test MySQL Event 1',NOW());
请查看此链接以获取更多详细信息: http://www.mysqltutorial.org/mysql-triggers/working-mysql-scheduled-event/