Hi

> If I'd like to upgrade LH 6.2 to LH 7.0+.  Would my
> old data (LH setting, MySQL db) lost?

No, but it is mandatory to make a backup (you
should do on a regular basis even for a normal
use, and obviously you MUST do it before a major
upgrade - dump your databases and tar your /etc
dir, al least). Many things are going to change,
however. First of all, inetd is abandoned in favour
of xinetd which is easier to configure but different.
Also, many more packages are now compiled with the 
hosts.allow/hosts.deny support (don't spend too
much time asking yourself why sendmail refuses
connections, as I did).

When you're upgrading choose to customize the packets
you have to upgrade and unckeck MySQL. You will upgrade
it yourself manually with a "fresh" version from the
MySQL site (RedHat wants to replace your binaries
with its ones, which are packaged differently)
Don't install anything earlier tha version 7.2.
Also, DON'T forget to patch your distribution with
anything you can find from the RedHat support site.
I would also suggest to download and install the
latest kernel.

I could easily upgrade my local system, but with
a remote one i choosed to wait. If you don't want
to upgrade now a (temporary?) solution is to upgrade
just your gcc compiler (and NOT glibc) and rebuild
the rpms from MySQL sources.

This is a hint received from James C. McDonald
(thanks a lot James!!!!!!):

------------------------------------------
1. downloaded the gcc-2.95.2-1i.src.rpm from
http://rpmfind.net/linux/RPM/ (yes I know it's 
from a PPC distribution, but Yellow Dog is based
on RedHat) [*]

2. built i386 rpms for gcc-2.95-2 by
   # rpm --rebuild gcc-2.95.2-1i.src.rpm
   on a RH 6.2 box [**]

3. on a test RH 6.2 system I removed egcs
   and installed the gcc-2.95-2 rpms I just
   built (or at least a subset of them

   (you need to install gperf-2.7-6.i386.rpm if
    it is not already installed) 

# rpm -e egcs-c++-1.1.2-30
# rpm -e egcs-objc-1.1.2-30
# rpm -e egcs-1.1.2-30
# rpm -e cpp-1.1.2-30

# rpm -ivh cpp-2.95.2-1i.i386.rpm
# rpm -ivh gcc-2.95.2-1i.i386.rpm
# rpm -ivh libstdc++-2.10.0-1i.i386.rpm
# rpm -ivh gcc-c++-2.95.2-1i.i386.rpm
# rpm -ivh gperf-2.7-6.i386.rpm

 you should now have gcc 2.95.2 installed 

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pc-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release/franzo)
--------------------------------

At this point, if you want, you can also --rebuild gcc 2.96,
which requires binutils-2.11 (have to --rebuild this, also).

--------------------------------
4. Now try to build the MySQL rpm's

# rpm --rebuild MySQL-3.23.49-1.src.rpm

now completes successfully giving ...

-rw-r--r--    1 root     root      6288340 Mar  5 12:59
MySQL-3.23.49-1.i386.rpm
-rw-r--r--    1 root     root      1397099 Mar  5 12:59
MySQL-Max-3.23.49-1.i386.rpm
-rw-r--r--    1 root     root       690350 Mar  5 12:59
MySQL-bench-3.23.49-1.i386.rpm
-rw-r--r--    1 root     root      1766978 Mar  5 12:59
MySQL-client-3.23.49-1.i386.rpm
-rw-r--r--    1 root     root       622278 Mar  5 12:59
MySQL-devel-3.23.49-1.i386.rpm
-rw-r--r--    1 root     root       234505 Mar  5 12:59
MySQL-shared-3.23.49-1.i386.rpm

I haven't tested the functionality of the build yet, 
but at least it builds without error. [***]
------------------------------------------
    

[*] You'll have to look directly into the Yellow Dog
ftp site since rpmfind links are broken.

[**] You need to have texinfo installed to build gcc
(this package is on your RedHat CD)

[***] I've tested it just a little but it really looks
like it's working pretty well!!! My mysql binaries have
been built with gcc 2.96 (but with gcc 2.95 it should
work the same).



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to