Last active
December 23, 2022 10:22
-
-
Save pravashkarki/5bb62ba9659a3cdfa70a1de65b3675eb to your computer and use it in GitHub Desktop.
connect mysql mamp from terminal, export db, import db
This file contains 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
Connect via Terminal (Run the code below) | |
/applications/MAMP/library/bin/mysql -uroot -proot | |
Exporting a MySQL database | |
mysqldump -uUSERNAME -p DATABASE > backup.sql | |
Importing a MySQL database | |
mysql -uUSERNAME -p DATABASE < backup.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment