Your MySQL script was running great, but then you started getting errors – If you get this warning when dumping the mysql database, it’s not a bug – MySQL did this on purpose because they wanted people to know that they weren’t dumping the event table. Previous versions did not give the warning.
1 |
-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly. |
Do you care about the mysql.event table? It’s for scheduled events (introduced in 5.1.6). More information about it can be found on the MySQL Event Scheduler page.
If you DO want to dump it, change:
1 |
mysqldump -uroot mysql > /tmp/mysql.sql |
to:
1 |
mysqldump -uroot --events mysql > /tmp/mysql.sql |
If you DON’T want to dump it, change:
1 |
mysqldump -uroot mysql > /tmp/mysql.sql |
to:
1 |
mysqldump -uroot --events --ignore-table=mysql.event mysql > /tmp/mysql.sql |
Also – if you’re interested, we have created a nice script to dump all of your MySQL databases nightly!