views:

1503

answers:

6

Hello, i need to install older version of mysql server on mac os, but i have newer version

i try to remove this newer installation (5.1), but when start old version install (5.0b) message "MySQL 5.0.51b-community for Mac OS X can't be installed in this disk. A newer version of this software alrady exists on this disk"

i can't recognize problem, because i remove all data of previouse install, but installer say no

Mac OS version 10.6

+1  A: 

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.

dlamblin
yes, i removed it, but this not helpthx
duganets
+1  A: 

Same question asked here, at roughly the same time it would seem. I posted over there.

mblackwell8
+7  A: 

Try running also

sudo rm -rf /var/db/receipts/com.mysql.*
Ben Alpert
Thanks a lot! problems solved when i run "sudo rm -rf.."
duganets
+1  A: 

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.

Kristinn Örn Sigurðsson
thx for advices :) i do finding stuff on my disk, like you says, but unfortunately output have a lot of information (libs like PHP of Eclipse etc)
duganets
+1  A: 

Try this, I had to struggle but this works for me!!!!!!!

  1. sudo rm /usr/local/mysql
  2. sudo rm -rf /usr/local/mysql*
  3. sudo rm -rf /Library/StartupItems/MySQLCOM
  4. sudo rm -rf /Library/PreferencePanes/My*
  5. (Edit /etc/hostconfig) sudo vi /etc/hostconfig (Remove line MYSQLCOM=-YES)
  6. sudo rm -rf /Library/Receipts/mysql*
  7. sudo rm -rf /Library/Receipts/MySQL*
  8. sudo rm -rf /var/db/receipts/com.mysql.*
Arun
A: 

Thanks a lot that helped. I was missing the 8th step .

Vaibhavi