Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

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

How to install MySQL server on Mac (OS X 10.6.8) from command line? If I donwload the .dmg file, is it possible to install it from command line?

share|improve this question

If you have homebrew installed, then :

brew install mysql

Else install homebrew it might be useful also to install other projects

share|improve this answer

I would recommend going by the way of ports:

sudo port install mysql5
sudo port activate mysql5

Even simpler is the MAMP way, but the MAMP distribution is usually behind the macport one.

share|improve this answer
Unfortunately, I don't need the latest version 5.1. I downloaded tar.gz file for 5.0 and would like to install that. – qazwsx Mar 4 '12 at 23:41
Did you follow Installing MySQL on Mac OS X? – Remus Rusanu Mar 5 '12 at 4:10

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.