Use Mysql on the Command Line When Developing With MAMP
Billy Heaton
1 min read
mate ~/.profile
Edit your path in .profile adding /Applications/MAMP/Library/bin:$PATH
export PATH="/usr/local/bin:/usr/local/mysql/bin:/Applications/MAMP/Library/bin:$PATH"
Also after you start MAMP to use mysql on command line :
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock