Run mysqldump without lock

Extracting a dump from a brig production mysql database may be troubling, because it causes the tables in the database to lock and any service can become offline.

But the mysqldump command have a lock tables switch that can prevent the tables to lock.

Just add

--lock-tables=false

to the dump command.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>