Skip to content

Instantly share code, notes, and snippets.

@mungomash
Created January 7, 2012 16:46
Show Gist options
  • Save mungomash/1575274 to your computer and use it in GitHub Desktop.
Save mungomash/1575274 to your computer and use it in GitHub Desktop.
MySQL command line cheat sheet
# create dump file from database
mysqldump wp_blog > 2012.1.7.mysql.dump.sql
# apply dump file to database wp_blog with user as root
mysql -u root wp_blog < 2012.1.7.mysql.dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment