Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
今天用mysqldump手動備份mysql資料庫時,出現上邊的錯誤資訊,百度發現是--events參數的問題,如下:
/usr/local/mysql/bin/mysqldump -uroot -pxxxxx --all-databases > all.sql
mysql用mysqldump導出資料庫時提示“-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.”
這是因為mysqldump預設是不備份事件表的,隻有加了--events 才會,解決辦法:
加上--events --ignore-table=mysql.events參數即可;