PDA

View Full Version : mysql 4.1.3 install


spaceage
2004-08-03, 00:15 AM
I'm trying to upgrade to mysql 4.1.3. I downloaded the server software from mysql.com, and everything is already compiled in the release. The dir after decompressing has a bunch of folders like:

bin
data
docs
include
lib
man
mysql-test
scripts
share
sql-bench
support-files
tests

The bin dir has all the standard mysql binaries from a normal install.

So, my question is, how do you update to this release? Running ./configure plays back a message from the developers indicating that the release is already compiled and ready to run. There doesn't seem to be any straight-forward way to move all the files in the release into place on the server. Can it be that you have to figure out where everything goes and manually overwrite the existing files?

Also, what about the libraries? I think I need the library from this release of mysql (4.1) to compile PHP5 correctly. What are you supposed to do with the .a files in the lib dir?

Thanks for any help...

spaceage
2004-08-03, 01:42 AM
OK, I went ahead and got the RPMs instead and installed. I installed all the RPMs available (except embedded) including the Max package. I used --nodeps on a couple which were choking on libssl.0.9.6 (I have 0.9.7a installed).

Now, when the server tries to start up, the Max package dies because it can't find libssl.0.9.6. I tried to symlink 0.9.6 to the 0.9.7a lib installed on my system, but no luck. Any ideas?

spaceage
2004-08-03, 02:46 AM
Well, I seem to be solving my problem all by my lonesome. In case anybody is paying attention, here's what I got to work:

1) download the source rpm for mysql 4.1.3 (or equivalent)

2) rpm -i <mysql source package name>

3) cd /usr/src/redhat/SPECS

4) rpmbuild -bp <mysql stuff>

5) cd /usr/src/redhat/BUILD

6) ./configure

7) make

8) make install

9) change the /etc/my.cnf file:

socket=/tmp/mysql.sock

(mysqladmin expects to use this file and not /var/lib/mysql/mysql.sock, which seems to be the default my.conf setting)

10) I symlinked libssl.0.9.6 to libssl.0.9.7a and also same for libcrypto.

If this isn't working, try:

11) tail -n 100 /var/log/mysqld.log

to see what errors mysql is reporting.

I think I got this working, but if any knowing soul reads this and sees a problem lurking, please advise.

TroyStark
2004-08-11, 08:36 AM
Is there a reason why you cannot upgrade libssl.0.9.6 to libssl.0.9.7a ?

using a lower version may cause some type of error? probably not, but if it says its req'd you might wanna look into installing that?

awsolutions
2004-08-11, 09:29 AM
You could have done this;

rpmbuil --rebuild <mysql.src>.rpm

cd /usr/src/redhat/RPMS
rpm -Uvh mys*

Or even simplier;

yum install mysql