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

优质老薛主机推荐:15%终身付款折扣:xwseo15 25%首次付款折扣 : xwseo115 点击下图进入购买

最近小魏在导出备份所有的数据库时候出现了警告错误

1.警告错误一:

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

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

mysqldump -uroot -pxxxxx –all-databases > sqlfile.sql
mysql用mysqldump导出数据库时提示“– Warning: Skipping the data of table mysql.event. Specify the –events option explicitly.”

解决方法:因为mysqldump默认是不备份事件表的,只有加了–events 才会解决加上–events –ignore-table=mysql.events参数即可:

mysqldump -uroot -pxxxxx –events –ignore-table=mysql.events –all-databases > sqlfile.sql

mysqldump: Got error: 1102: Incorrect database name '#mysql50#' when selecting t he database

1.警告错误二:

返回错误:mysqldump: Got error: 1102: Incorrect database name ‘#mysql50#’ when selecting the database

其实这个是伪数据库,导致数据库引擎将它当成了一个数据库。

解决方法:删除伪数据库drop database #mysql150#

 

赞 (0)
分享到:更多 ()