Skip to content

Instantly share code, notes, and snippets.

@bdamusis
Forked from paulund/export-mysql.sql
Created August 4, 2014 18:24
Show Gist options
  • Save bdamusis/d007054e784b22a4a252 to your computer and use it in GitHub Desktop.
Save bdamusis/d007054e784b22a4a252 to your computer and use it in GitHub Desktop.
Import / export sql database via command line
mysqldump -p -u username -h hostname database_name > dbname.sql
mysql -p -u username -h hostname database_name < file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment