Connect to mysql in MAMP from terminal in Mac
If you use MAMP and want to connect mysql from terminal, you should use the following command:
- Launch MAMP
- Start MySql server or all servers
- Launch terminal/iterm2, type the command as following:
$ cd /Applications/MAMP/Library/bin
$ ./mysql --host=localhost -uroot -proot
Comments