Super User is a question and answer site for computer enthusiasts and power users. 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

MySQL Installation fails when installing it on Mac os Mountain Lion.

I don't why this simple installation fails.

The file that I am trying to install is mysql-5.0.96-osx10.5-x86.dmg.

MySQL server Installation Error

share|improve this question

migrated from Nov 11 '12 at 19:36

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

Maybe a duplicate. Have you tried this?… – Thor Nov 10 '12 at 4:42
is this a clean OS Install? do you have the OX Developer Tools installed? – Mr_Nizzle Nov 12 '12 at 22:15
Developer Tools are also installed on this OS. – andyPaul Nov 13 '12 at 17:59

I would suggest you try Homebrew as your installation method instead. It's very well maintained across a lot of core packages for developers.

You start with this command:

ruby -e "$(curl -fsSkL"

Follow the installation instructions, then:

brew install mysql

I've had two successful installs with no problems on Mountain Lion.

share|improve this answer
I used the above two commands but landed different error while running mysql -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' – andyPaul Nov 10 '12 at 4:53
Do you see anything if you type ps ax | grep mysqld? This should list any running mysqld processes. The brew install method doesn't actually start the database for you. I believe to start the database server, you need to type mysql.server start. – platforms Nov 10 '12 at 7:38
Did you figure it out? Usually the reason you can't connect through the mysql.sock file is if the mysqld server isn't actually running. – platforms Nov 11 '12 at 16:11
On executing ps ax | grep mysqld. It returns one process which is like this "668 s000 S+ 0:00.00 grep mysqld". on typing mysql.server start it is not able to recognise it. Any idea to install it .dmg provided by MySQL. People says its the issue with creating user group "_mysql". I wanted it to install it on urgent basis but, still working around with this issue. – andyPaul Nov 11 '12 at 16:47
OK mysql is not running. Did you follow the instructions after installing with Hombebrew? You need to execute something like mysql_install_db --verbose --user=your_user --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp – platforms Nov 11 '12 at 17:08

On Mountain Lion you should be using the 64-bit DMG I had no problem installing MySQL on Mountain Lion.

share|improve this answer
Moving ahead I downloaded a new .dmg file which is mysql-5-1.5.28-osx10.6-x86_64.dmg. Now, this seems to be 64 bit version, but no success yet. So, I think this is not a issue related to version [32 or 64 bit]. – andyPaul Nov 13 '12 at 17:58
I have installed the same file on MacOS Lion. But, on Mountain Lion it fails. Any one of you have installed on Mountain Lion. – andyPaul Nov 23 '12 at 19:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .