- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

来源:互联网 发布:养猫 知乎 编辑:程序博客网 时间:2024/06/07 20:33

[root@localhost ~]# mysqldump --all-databases --single-transaction --master-data=1 --flush-logs --result-file=dump.sql  -S /tmp/mysql3306.sock
-- Warning: Skipping the data of table MySQL.event. Specify the --events option explicitly.

mysql用mysqldump导出数据库时提示“-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.”

这是因为mysqldump默认是不备份事件表的,解决办法:

1、加上--events \ -E       (这样就会备份事件表)

[root@localhost ~]# mysqldump --all-databases --single-transaction --master-data=1 --flush-logs --result-file=dump.sql  -E -S /tmp/mysql3306.sock
[root@localhost ~]#

2、加上--ignore-table=mysql.event    (这样就显示地不会备份事件表)

[root@localhost ~]# mysqldump --all-databases --single-transaction --master-data=1 --flush-logs --result-file=dump.sql --ignore-table=mysql.event -S /tmp/mysql3306.sock
[root@localhost ~]#

--本篇文章转自:- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.


0 0