Created
February 27, 2019 16:28
-
-
Save chronosceptor/ef847b74ef790e890e41f7c20b3e1d7c to your computer and use it in GitHub Desktop.
To use the MySQL command line with MAMP or MAMP PRO, perform the following steps:
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
| -- 1.- Start MAMP or MAMP PRO | |
| -- 2.- Start the server | |
| -- 3.- Open Terminal (Applications -> Utilities) | |
| -- 4.- Type in: (one line) | |
| /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot | |
| -- select database | |
| mysql> use DATABASE_NAME; | |
| -- select sql | |
| mysql> source path/to/file.sql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment