Today I noticed that custombuild does not upgrade my MySQL-server RPM on my Centos 5.8 server. So now I am stuck with an old server RPM that I need to update to the latest version. What would be the safest way to do this?
This is what I did today:
./build update
./build versions
./build mysql
<snip>
After that I tried to remove the file and do a build again:
rm /var/lib/mysql/RPM_UPGRADE_MARKER
./build mysql
That did not fix my problem. I'm now stuck with these RPM's:
How can I safely upgrade to MySQL-server-5.5.25a-1.linux2.6 ?
thanks!
This is what I did today:
./build update
./build versions
./build mysql
<snip>
Code:
Found /usr/local/directadmin/custombuild/mysql/MySQL-client-5.5.25a-1.linux2.6.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-devel-5.5.25a-1.linux2.6.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-server-5.5.25a-1.linux2.6.x86_64.rpm
Found /usr/local/directadmin/custombuild/mysql/MySQL-shared-5.5.25a-1.linux2.6.x86_64.rpm
Stopping mysqld ...
Shutting down MySQL...... [ OK ]
Updating MySQL 5.5.25 to 5.5.25a
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [ 25%]
2:MySQL-devel ########################################### [ 50%]
[COLOR="Red"]Some previous upgrade was not finished:
-rw-r--r-- 1 root root 395 Dec 10 2011 /var/lib/mysql/RPM_UPGRADE_MARKER
Please check its status, then do
rm /var/lib/mysql/RPM_UPGRADE_MARKER
before repeating the MySQL upgrade.
error: %pre(MySQL-server-5.5.25a-1.linux2.6.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping MySQL-server-5.5.25a-1.linux2.6
3:MySQL-shared [/COLOR]########################################### [ 75%]
Starting MySQL... [ OK ]
Giving mysqld a few seconds to start up...
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
This installation of MySQL is already upgraded to 5.5.18, use --force if you still need to run mysql_upgrade
cp: `/usr/lib/libmysqlclient.so' and `/usr/lib/mysql/libmysqlclient.so' are the same file
Restarting MySQL.
Shutting down MySQL... [ OK ]
Starting MySQL.. [ OK ]
After that I tried to remove the file and do a build again:
rm /var/lib/mysql/RPM_UPGRADE_MARKER
./build mysql
That did not fix my problem. I'm now stuck with these RPM's:
rpm -qa | grep MySQL
MySQL-devel-5.5.25a-1.linux2.6
MySQL-client-5.5.25a-1.linux2.6
MySQL-server-5.5.17-1.linux2.6
MySQL-shared-5.5.25a-1.linux2.6
MySQL-devel-5.5.25a-1.linux2.6
MySQL-client-5.5.25a-1.linux2.6
MySQL-server-5.5.17-1.linux2.6
MySQL-shared-5.5.25a-1.linux2.6
How can I safely upgrade to MySQL-server-5.5.25a-1.linux2.6 ?
thanks!
Last edited: