Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I previously had mysql running on my machine. I had to wipe my machine clean yesterday, for an unrelated reason. After I reinstalled mysql today, I received the error

-bash: mysql: command not found

When I run /usr/local/mysql-5.6.10-osx10.7-x86_64/bin/mysql -u root, this launches mysql. Does this help at all?

I am using Mac OSX 10.8.2. I show that mysql is running in System Preference.

I'm sure I'm missing something very obvious. Any and all help is appreciated.

share|improve this question

How did you install MySQL ? It seems that the mysql executable is not in your PATH.

Try adding it by adding this line: export PATH=$PATH:/usr/local/mysql-5.6.10-osx10.7-x86_64/bin/ to your ~/.profile file

share|improve this answer
I installed it with the .dmg file. Where can I find the ~/.profile file? I don't see it in my home directory, where I see files like .bash_profile? – Adam_G Feb 17 '13 at 21:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.