What's the quickest way to dump & load a MySQL InnoDB database using mysqldump?

Posted by Josh Schwartzman on Stack Overflow See other posts from Stack Overflow or by Josh Schwartzman
Published on 2008-09-25T01:58:22Z Indexed on 2010/12/26 20:54 UTC
Read the original article Hit count: 128

Filed under:
|
|
|

I would like to create a copy of a database with approximately 40 InnoDB tables and around 1.5GB of data with mysqldump and MySQL 5.1.

What are the best parameters (ie: --single-transaction) that will result in the quickest dump and load of the data?

As well, when loading the data into the second DB, is it quicker to:

1) pipe the results directly to the second MySQL server instance and use the --compress option

or

2) load it from a text file (ie: mysql < my_sql_dump.sql)

© Stack Overflow or respective owner

Related posts about mysql

Related posts about database