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

1151人浏览 / 0人评论

mysqldump备份出现报错:-- 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默认是不备份事件表的,只有加了--events 才会解决加上--events --ignore-table=mysql.events参数即可:

mysqldump -h 127.0.0.1 -urdsroot -p  --events --ignore-table=mysql.events --all-databases >DiscuzBBS-2020-09-17.sql
 

 

全部评论