MySQL Command not Found [MAMP]

bash, mysql, shell, terminal, unix

Solution

A simple way is to just run

sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql

What this does is add a symbolic link for the mysql binary from MAMP into your executable path – in this case, within /usr/local/bin/

Warning: If you’ve installed MySQL manually as well, this may interfere with that installation, so don’t do this if you have!

Problem

I'm working to set up my MySQL server using MAMP. Current Status: Downloaded MySQL, MAMP Running MAMP: MySQL Server is green, plus it appears as a process in activity monitor I tried: ``` $ mysql -bash: mysql: command not found ``` I saw some tutorials that recommended adding a path to my .profile file. So I created a .profile file and added ``` PATH=$PATH:/Applications/MAMP/Library/bin export PATH ``` I then saved it as .profile in the home directory. Again I tried ``` $ mysql -bash mysql: command not found ``` Does anyone have any idea what's wrong? Thanks OS: Mountain Lion

Original source

Related problems