MySQL not updated using custombuild

Tha

New member
Joined
Oct 5, 2009
Messages
4
I am new to using custombuild but I am trying to familiarize myself with the tool.

On a remote CentOS system i wanted to upgrade the MySQL package so I gave

./build mysql

I got some output and this seems to be the most relevant pieces of it.
Code:
A MySQL server package (MySQL-server-4.1.11-0) is installed.

Upgrading directly from MySQL 4.1 to MySQL5.1 may not
be safe in all cases.

and
Code:
This is a brief description of the upgrade process. Important details
can be found in the MySQL manual, in the Upgrading section.
*****************************************************************
error: %pre(MySQL-server-5.1.39-0.glibc23.i386) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping MySQL-server-5.1.39-0.glibc23
starting MySQL SUCCESS

Happily after I ran this script MySQL 4.1 kept running and functioning, but

How do I properly upgrade to the new version?


Any help greatly appreciated.
 
Last edited:
I got it working and this is how I ended up doing it.

setting MySQL to 5.0 first and later to 5.1 didn't work so I switched to your suggested rebuilding 4.1 manual with no dependences. CustomBuild reported it couldn't find 4.1.11 any more.

Now, the server was set up using the old CustomApache so I tried to download MySQL 4.1 from the MySQL website using wget, but that failed since CustomBuild doesn't accept that.

So I gave :
Code:
cd /usr/local/directadmin/custombuild
./build update
./build set mysql [U]4.1[/U]
./build mysql
./build set mysql 5.1
./build mysql

That did the trick.
 
Back
Top