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've always used MAMP or XAMPP to install MYSQL so it's been fairly straightforward. The only most I've had to do is create a symbolic link.

I'm now starting to learn Django and I would like to start a new. I uninstalled XAMPP and downloaded MYSQL from (64 bit) but I have no idea where it installed it to! I went to the command line and typed "mysql" and received the message "command not found".

Where is MYSQL installed on Mac OSX Lion?


share|improve this question

migrated from Aug 31 '11 at 16:10

This question came from our site for professional and enthusiast programmers.

Did you actually install it, or did you just download it? – Joel Coehoorn Aug 31 '11 at 16:13
up vote 4 down vote accepted

The installation layout is similar to that of a tar file binary distribution; all MySQL binaries are located in the directory /usr/local/mysql/bin. The MySQL socket file is created as /tmp/mysql.sock by default. See Section 2.7, “Installation Layouts”.


It's probably not added to your $PATH, thus why the commands aren't visible in the terminal. Try typing echo $PATH on your terminal to see if /usr/local/mysql/bin is included in the path.

Additionally, on the terminal, you can type which mysql. If that returns nothing your environment is not finding your MySQL binary.

share|improve this answer
+1 for it not being on your path. Try typing "echo $PATH" on your terminal to see if /usr/local/mysql/bin is on the path. Additionally, on the terminal, you can type "which mysql". If that returns nothing your environment is not seeing your MySQL installation. – C0D3M0NK3Y Sep 3 '11 at 14:48

Have you tried opening Terminal and typing:

locate mysql

share|improve this answer
this wont be useful if he has never used the locate command before – JBoy May 5 at 20:33

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.