Portal Home > Knowledgebase > Articles Database > Error Upgrading to MySQL 5


Error Upgrading to MySQL 5




Posted by patrickkonsor, 09-03-2008, 04:45 PM
I'm trying to upgrade to MySQL 5, but I received the following error: A MySQL server package (MySQL-server-4.1.11-0) is installed. Thus I tried to erase that rpm.. So it seems I'm missing that file, which causes the erase to fail. Does anyone know anyway I can get around this?

Posted by datums, 09-03-2008, 04:47 PM
rpm -e MySQL-server-4.1.11-0 did you backup your db ?

Posted by patrickkonsor, 09-03-2008, 04:50 PM
Yes, I backed up my data. Running that command has the same problem..

Posted by cywkevin, 09-03-2008, 05:04 PM
do rpm -qa | grep -i mysql Last edited by cywkevin; 09-03-2008 at 05:09 PM.

Posted by patrickkonsor, 09-03-2008, 05:10 PM
Well that's what I had done to begin with, that's when I got the first error that MySQL 4.1.11 was installed, so I am trying to uninstall it..

Posted by patrickkonsor, 09-03-2008, 07:41 PM
I tried copying the mysql file from /usr/bin/mysql to /etc/init.d/mysql and it changed the error.. I don't know why it's giving the can't connect error since mysql is supposed to be stopped (which it is). Last edited by patrickkonsor; 09-03-2008 at 07:45 PM.

Posted by foutrelis, 09-03-2008, 10:27 PM
Actually, scratch that. Try passing the --noscripts switch to rpm during the uninstallation: rpm -e --noscripts --nodeps --allmatches MySQL-server (What's described below is just a wild guess .-.) First create a dumb script that will do nothing except exiting normally: Then try your last command again (rpm -e --nodeps --allmatches MySQL-server). Remember to delete this script before installing MySQL 5. Last edited by foutrelis; 09-03-2008 at 10:35 PM.

Posted by patrickkonsor, 09-03-2008, 10:52 PM
Adding --noscripts actually solved the problem. Thanks a lot!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language: