View Single Post
Old 08-02-2011, 08:57 AM   #103 (permalink)
Isamu
A True Z Fanatic
 
Isamu's Avatar
 
Join Date: Jul 2010
Location: Minot ND
Posts: 51,960
Drives: every day...
Rep Power: 212
Isamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond reputeIsamu has a reputation beyond repute
Default

Quote:
Originally Posted by houkouonchi View Post
AK, is there a reason why you don't convert the mysql tables to innodb (assuming they are myisam) and do mysqldump with --single-transaction to prevent the tables from being locked so you don't have the site go down during the mysqldump?

I work for a web-hosting company and our central database is over 100GB. Its not really feasible to have downtime during backup so most of our stuff is innodb. Another option is to have two mysqld's (would use more disk I/O if you don't have another server to run it on) and do mysql replication and then just run the dump on the slave.
__________________
Quote:
It's not an oil leak, it's sweat from all the horsepower!

黒子 ('Kuroko')
Project: SuperNova Owner/Operator and Lead designer @BlackGuard Aeroworks
Isamu is offline   Reply With Quote