Skip to content

Instantly share code, notes, and snippets.

@v9n
Created January 8, 2012 02:24
Show Gist options
  • Select an option

  • Save v9n/1576903 to your computer and use it in GitHub Desktop.

Select an option

Save v9n/1576903 to your computer and use it in GitHub Desktop.
Restore and Dump mysql
mysql -u root -p secret dbname < db.sql
mysql -u root -p secret
mysql> create database mydb;
mysql> use mydb;
mysql> source db_backup.dump;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment