Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed mysql on my Mac per these instructions. However, at the command line which mysql and which mysqld replies nothing.

How do I get from the above link to this tutorial link?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Likely, the installer didn't add a path entry for the newly installed binaries, and since they are not in a standard path, which can't find them.

Try if calling /usr/local/mysql/bin/mysql works. If yes, add the following line to the file /etc/profile

export PATH=$PATH:/usr/local/mysql/bin

If not, you have to find out where the binaries landed and alter the above line accordingly.

After that, you have to restart Terminal.app before the changes will take effect.

share|improve this answer
    
That did it! Thanks. –  John Berryman Dec 11 '10 at 17:17

Your Answer

 
discard

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.