I'm using a mysqldump command pulling data from 3 tables of 7. Are the other 4 locked as well?


Use --single-transaction option, and it won't lock any, provided you are using a transaction-aware storage engine (pretty much anything except MyISAM and MEMORY engines)

| improve this answer | |
  • I'm aware of --single-transaction to not lock any, I'm just wondering if the default set up is to lock every single table in the database until the mysqldump is complete, regardless of the fact that I'm only pulling a finite number of them. – ChrisW Jun 5 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.