On CentOS 5.9 i686 running WHM 11.38, I was attempting to upgrade mysql from 5.0 to 5.5 using shell instead of WHM because I was told it was safer that way as it would keep the old mysql lib intact and my sites would have no downtime. HA. The shell upgrade failed. So I attempted to upgrade using WHM mysql upgrade and that failed. Then I did an easyapache upgrade and then another mysql upgrade via WHM which finally showed it was a success. But then the mysql service wouldn't start and it produced the error message:
The tail end of the MySQL error log shows this:
In shell I got this:
The output list shows that i'm missing the current version of mysql 5.5 server.
I tried re-upgrading mysql from within WHM and it said success but the mysql won't start and it looks like it is not available.
So it seems the old version of mysql 5.0 didn't uninstall correctly and it is conflicting with a partial install of the new mysql 5.5 version. ???
So my question is, how do I completely uninstall the old mysql 5.0 from shell? Do I have to uninstall both mysql versions using rpm from shell to completely remove them, exit shell, and then use WHM to install mysql 5.5 again? I can't do a downgrade back to mysql 5.0 via WHM. Any help would be great! thanks.
Code:
"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
Code:
mysqld started
130312 4:13:16 InnoDB: Started; log sequence number 0 2350314
130312 4:13:16 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.96-community' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition (GPL)
130923 21:06:50 [Note] /usr/sbin/mysqld: Normal shutdown
130923 21:06:50 InnoDB: Starting shutdown...
130923 21:06:50 InnoDB: Shutdown completed; log sequence number 0 2794677
130923 21:06:50 [Note] /usr/sbin/mysqld: Shutdown complete
130923 21:06:50 mysqld ended
Code:
# rpm -qa|grep -i mysql
MySQL55-shared-5.5.32-1.cp1136
MySQL55-devel-5.5.32-1.cp1136
cpanel-mysql-libs-5.0.96-1.cp1136
cpanel-mysql-5.0.96-1.cp1136
cpanel-perl-514-MySQL-Diff-0.43-1.cp1136
MySQL55-client-5.5.32-1.cp1136
MySQL55-test-5.5.32-1.cp1136
cpanel-perl-514-DBD-mysql-4.021-1.cp1136
I tried re-upgrading mysql from within WHM and it said success but the mysql won't start and it looks like it is not available.
So it seems the old version of mysql 5.0 didn't uninstall correctly and it is conflicting with a partial install of the new mysql 5.5 version. ???
So my question is, how do I completely uninstall the old mysql 5.0 from shell? Do I have to uninstall both mysql versions using rpm from shell to completely remove them, exit shell, and then use WHM to install mysql 5.5 again? I can't do a downgrade back to mysql 5.0 via WHM. Any help would be great! thanks.