Custombuild does not upgrade MySQL-server

DonJohn

Verified User
Joined
May 18, 2007
Messages
15
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>
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

How can I safely upgrade to MySQL-server-5.5.25a-1.linux2.6 ?

thanks!
 
Last edited:
Hello,

1. Create a mysql backup (you won't need it most cases, but for sake of security you'd better have it)
2. delete MySQL-server-5.5.17-1.linux2.6 with rpm/yum
3. ./build mysql

I did several times on CentOS and had no unresolvable issues.
 
Thanks zEitEr,

I upgraded the mysql server on my Centos 5 box by removing and installing the RPM manualy.

1) made a backup:
cd /usr/local/directadmin/custombuild
./build mysql


2) removed the old rpm:
rpm -e MySQL-server-5.5.17-1.linux2.6

3) Running custombuild did not work, I had to install the rpm my self:
rpm -Uvh mysql/MySQL-server-5.5.25a-1.linux2.6.x86_64.rpm

4) run custombuild:
./build mysql
./build php n
 
Back
Top