Fixing Mysqldump Lock Tables Error

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


mysqldump: Got error: 29: File './db/table_1001269.MYD' not found (Errcode: 24) when using LOCK TABLES

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

user@computer:$ mysqldump -uuser -ppassword --skip-lock-tables database > database.sql

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

2 thoughts on “Fixing Mysqldump Lock Tables Error

Leave a Reply

Your email address will not be published. Required fields are marked *