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

  1. Mark Nett

    Thanks! This resolved my issue.

    But I would like to know if this have any consequences!Is all data backed up? or any chance of some data missing?

Comments are closed.