您的位置:首页 > 数据库 > SQL

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

2016-11-26 15:16 435 查看
[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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐