MySQL on OS x 10.6 is located in /usr/local/mysql/bin/mysql.
I get command not found when I type mysql --version in the terminal. Is this because the socket path is wrong? If so how do I fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just do the following in your terminal:
echo $PATHIf your given path is not in that string, you have to add it like this:
export PATH=$PATH:/usr/local/orexport PATH=$PATH:/usr/local/mysql/bin