If you ever find yourself doing a mysqldump on a large database, you may end up seeing this error:

If this happens, just re-run the mysqldump command and add the –skip-lock-tables flag:

MySQL sometimes tries to incorrectly lock tables on the information_schema database.