Learning some Mysql

I get to wear my MySQL hat – so some commands more for my own reference:

All databases:

mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]

mysqldump -u sadmin -p pass21 Customers > custback.sql

Some databases:

mysqldump -u root -p pass21 –databases Customers Orders Comments > multibackup.sql

Compressing on the fly:

mysqldump –all-databases | gzip >databasebackup.sql.gz

Share and Enjoy:
  • Facebook
  • Digg
  • del.icio.us
  • TwitThis
  • Google Bookmarks

Tags: ,

02.Sep.08 Randomness


You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

You must be logged in to post a comment.

blog comments powered by Disqus