I cant get my mysql to start on os x 10.7. It is located in /usr/local/mysql/bin/mysql
I get command not found when I type mysql --version
I had same issue after installing mariadb via HomeBrew, brew doctor
suggested to run brew link mariadb
- which fixed the issue.
I faced the same issue, and finally i got a solution. Please go through with the below steps, if you are using MAMP.
This works for me.
I have tried a lot of the suggestions on SO but this is the one that actually worked for me:
sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'
then you type
mysql
It will prompt you to enter your password.