Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I had earlier installed mysql-5.1.50-osx10.6-x86_64.dmg and then uninstalled it using the below command (found on Stack Overflow):

$ sudo rm /usr/local/mysql  
$ sudo rm -rf /usr/local/mysql*
$ sudo rm -rf Library/StartupItems/MySQLCOM   
$ sudo rm -rf /Library/PreferencePanes/My*   
$ rm -rf ~/Library/PreferencePanes/My*   
$ sudo rm -rf /Library/Receipts/mysql*   
$ sudo rm -rf /Library/Receipts/MySQL*   
$ sudo vi /etc/hostconfig   
$ sudo rm -rf /var/db/receipts/com.mysql.mysql*   
$ cd /Library/Receipts/

Then I have tried to reinstall from mysql-5.5.9-osx10.6-x86_64.dmg.

However I am getting the following error:

The installation failed
The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

share|improve this question
    
Can you open /Applications/Utilities/Console.app and tell us, what the errors are from the MySQL installer? –  deiga Feb 21 '11 at 16:00
    
Console does not show any thing related to mysql but related to office 2008. How ever the installer log showed:Feb 21 21:30:28 Sarbbottam-Bandyopadhyays-MacBook-Pro Installer[378]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x11940f8d0 "An error occurred while running scripts from the package “mysql-5.5.9-osx10.6-x86_64.pkg”." – –  Sarbbottam Bandyopadhyay Feb 21 '11 at 16:13
    
At which point of the installation does the error occur? Did you follow these steps? <dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html>; –  deiga Feb 21 '11 at 16:38
    
yes, i have followed the complete steps, in the last part, the error occurs, last time when I have installed it was perfect. I guess i need to remove something prior installing. Please help. To be precise in the installation step. –  Sarbbottam Bandyopadhyay Feb 21 '11 at 16:44
    
I am breaking my head over it, don't have any clue how to fix it. –  Sarbbottam Bandyopadhyay Feb 21 '11 at 16:58

3 Answers 3

This might be a little late, but Homebrew for Macintosh is a stellar way to install software such as mysql. There is information on the their wiki on how to install and then once brew is installed, it is just brew install mysql in your terminal window.

Good luck!

Update: DOH. I fail at reading. Problem already solved. Anyway, for people in the future, if you have trouble installing mysql, give brew a try.

share|improve this answer
    
Definitely agree with you. Homebrew is, IMHO, the best package management system anywhere. –  Arthur Maltson May 4 '11 at 1:05

Try to install MySql from the CD that come with your computer. It is part of apple developer tools. Once that is installed, try to install the dmg you downloaded from the official site.

share|improve this answer
    
I have received only 2 DVD, one is of os x install and the other is application DVD, I did not get which one are to talking about. –  Sarbbottam Bandyopadhyay Feb 22 '11 at 16:15
    
if you mount one of those DVD's there's an installer with apple development tools. I don't have DVDs with me at the moment. –  Zepplock Feb 22 '11 at 17:43
up vote 0 down vote accepted

I am able to instal MySql at last. Details can be found @ http://stackoverflow.com/questions/5067787/re-install-mysql-in-mac-os-x-10-6-6

However, being a novice, I am not sure how to connect mysql.

Any thoughts???

share|improve this answer

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.