Last active
August 12, 2019 06:34
-
-
Save hitautodestruct/17981e100155dda9251699a606c582bf to your computer and use it in GitHub Desktop.
An example of exporting an sql db from mysql from a cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export dump | |
mysqldump -u [username] -p[password] [dbname] | gzip > ~/[dbname].sql.gz | |
# import | |
mysql -u username -p database_name < file.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment