How to remove mysql completely from a Mac

cheonhyangzhang's programming

I was having this problem because I installed a wrong version of mysql.

So I have to remove previous version.

I got this steps online and it works for me.

First of all, remember to stop the mysql server.

You can stop the server by System Preferences -> MySQL, Stop MySQL Server

1 Sudo edit file  /etc/hostconfig

Remove line MYSQLCOM=-YES-

Actually I don’t have this line in the file

2 Open up terminal and run the following commands

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/MySQL*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm /etc/my.conf

For some of the files I still don’t have in my Mac. Maybe because I did not have a full installation of mysql before.

Ver la entrada original

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s