domingo, 1 de septiembre de 2013

Uninstall MySql on a Mac OS X

Today I tried to install mysql for mac and I Installed it for MAc OS X 10.7 when I have installed 10.6 version..

Well there is a bug cause the installed didn't warn me and I faced the bug described in:
http://bugs.mysql.com/67133

To fix this I followed some steps from:

http://community.jaspersoft.com/wiki/uninstall-mysql-mac-os-x

This is a copy of previous link solution:

Table of Contents [hide]

Summary

To completely uninstall MySql OS X it is neccessary to remove numerous files.

Symptom

You unable to install an older version of MySql even though you thought you have removed everything.

Resolution

To uninstall MySQL and completely remove it (including all databases) from your Mac do the following:
  • Open a terminal window
  • Use mysqldump to backup your databases to text files!
  • Stop the database server
  • sudo rm /usr/local/mysql
  • sudo rm -rf /usr/local/mysql*
  • sudo rm -rf /Library/StartupItems/MySQLCOM
  • sudo rm -rf /Library/PreferencePanes/My*
  • edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
  • rm -rf ~/Library/PreferencePanes/My*
  • sudo rm -rf /Library/Receipts/mysql*
  • sudo rm -rf /Library/Receipts/MySQL*
  • sudo rm -rf /private/var/db/receipts/*mysql*
The last three lines are particularly important as otherwise, you can't install an older version of MySQL even though you think that you've completely deleted the newer version!

Might be also helpful: http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html


Enjoy!
P.S. No flags today.. it's Sunday!



No hay comentarios:

Publicar un comentario en la entrada