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
有问题请加博主微信进行沟通!
全部评论