1

i have a large database to backup nightly and we currently do mysqldump on the master server which locks all inserts when dumping

we use a master slave mysql setup with magento configured to send all writes to the master and all reads to the slave. if we move the backup to the slave server will the mysqldump process lock out select queries or any other queries that would be reading data only and not inserting data to the DB?

1 Answer 1

2

mysqldump uses a read local lock, so selects will still work

sources: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_lock-tables http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html (see sections on READ and LOCAL keywords)

1
  • can confirm testing this worked perfectly :) Aug 2, 2011 at 20:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .