Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
Maybe a duplicate. Have you tried this? stackoverflow.com/questions/5645038/… –  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
add comment

migrated from stackoverflow.com Nov 11 '12 at 19:36

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

2 Answers

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 raw.github.com/mxcl/homebrew/go)"

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
show 2 more comments

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
add comment

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.