Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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)

share|improve this answer
    
can confirm testing this worked perfectly :) – anthonysomerset Aug 2 '11 at 20:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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