mysqldump is a useful utility for dumping the contents of an entire database to an SQL file.

CODE:
  1. mysqldump --user=dbusername --password=dbpassword db_name_here> db_name_here.sql

By default the --opt option is enabled, which is a shorthand option for specifying the below options. According to the documentation, using this option "... should give you a fast dump operation and produce a dump file that can be reloaded into a MySQL server quickly".

CODE:
  1. --add-drop-table
  2. --add-locks
  3. --create-options
  4. --disable-keys
  5. --extended-insert
  6. --lock-tables
  7. --quick
  8. --set-charset

Share
Share →

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>