I’m working on a project at the moment where we’re doing an
upgrade and need to do the dump-and-restore method. It’s 300G, so
that’s never going to be fun, but I found a tool today that
helped significantly.
Multi threaded mysqldump is not an utopia any more. mysqlpdump
can dump all your tables and databases in parallel so it can be
much faster in systems with multiple cpu?s.
I ran mysqlpdump (with one patch I’ll send in soon to put quotes
around table names) today with 16 threads on a 4 core system and
did all 300G in ~3.5 hours. Additionally, since it wraps
mysqldump but iterates over the tables, I got a sql file for each
table, which is going to make writing a script to restore a piece
of cake. It understands that I wanted to do –master-data and it
had an option to gzip each sql file as it went.
All in all, I’m thrilled. kudos! And thanks for the tool.
…
[Read more]