Last active
July 10, 2021 18:19
-
-
Save vctrtvfrrr/e1ce14e745e14d8699d940e0bdd5f415 to your computer and use it in GitHub Desktop.
Export/Import MySQL database
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 database to SQL file | |
mysqldump -u root -p database > database.sql | |
# Import database from SQL file | |
mysql -u root -p -h 127.0.0.1 database < database.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment