Tuesday, February 15, 2011

Install/Uninstall MySQL 5.1 on Mac

Install

  1. Download a x64 bit (.dmg) copy from MySQL website
  2. Install it
  3. Also install the Preferences Pane

Troubleshoot if MySQL wont install or a version (previous/latest) is already installed.

Uninstall

  1. Make sure MySQL is not running
  2. Open Terminal
  3. Type in Terminal:
    sudo nano /etc/hostconfig
  4. Enter your password, if asked for.
  5. Delete the following line if its there: “MYSQLCOM=-YES-”
  6. CTRL+X (This is the command for closing NANO, Enter the “Y” key to save the file if you changed it and exit nano).
  7. Type in Terminal
    sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/My* sudo rm -rf /Library/Receipts/mysql* sudo rm -rf /Library/Receipts/MySQL* sudo rm /etc/my.cnf sudo rm -rf /var/db/receipts/com.mysql.mysql*

Posted via email from Abhishek Dev

No comments: