MySQL – dumping extremely large databases

Spent a bit of time figuring this one out…

If you’re going to need to dump a very large mysql database, you’ll probably need to use “–single-transaction” to make it work.


mysqldump -u [username] -p --single-transaction [database name] > [your dump file].sql

This entry was posted in geeked and tagged , , , , , . Bookmark the permalink.

One Response to MySQL – dumping extremely large databases

  1. jim says:

    Nifty, Matt. What’s the –single-transaction option do?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>