I need to install older version of mysql server on mac os, but I have a newer version.
I tried to remove this newer installation (5.1), but when start old version instal
Test finding all files and folders with "mysql" in their name, take a look at them and see if they must be deleted as well.
Use the following command to find all the files.
sudo find / | grep -i mysql
You can scroll through the output if you put | less at the end (it won't show anything up until it finds something, just so you wouldn't think the command failed.) :-) You can write it as follows.
sudo find / | grep -i mysql | less
To remove the files/folders, you will have to run the following command (-f means force so you won't be able to restore the files and you won't be asked for a confirmation before they are deleted):
sudo rm -rf /path/to/file/or/folder
Hope this will be of any help.
I believe you can essentially just delete the /usr/local/mysql-Version/
and unlink the /usr/local/mysql
directory. Getting rid of the system pref and the start up item might be harder, but I didn't install those so I can't help there.
Try this, I had to struggle but this works for me!!!!!!!
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
sudo vi /etc/hostconfig
(Remove line MYSQLCOM=-YES)sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
Try running also
sudo rm -rf /var/db/receipts/com.mysql.*
On Snow Leopard I had to additionally kill mysqld and did
rm /private/var/db/receipts/com.mysql.*
sudo rm -rf /Users//Library/StartupItems/MySQLCOM sudo rm -rf /Users//Library/PreferencePanes/My* sudo rm -rf /Users//Library/Receipts/mysql* sudo rm -rf /Users//Library/Receipts/MySQL*
You can use the built-in utility pkgutil to remove the package receipt:
sudo pkgutil --forget com.mysql.mysql