(Revised HowTO: SOON TO BE UPDATED)This HowTO: has been posted many times, with numerous suggestions and error reporting. I have revised this HowTO: and WILL enable you to upgrade
MySQL 3.23 to
MySQL 4.0.20 (or later Versions) FLAWLESSLY on
SME 6.0 Unsupported Release and show NEW version in any version of phpMyAdmin.
(Example)
Welcome to phpMyAdmin 2.6.0-alpha2
MySQL 4.0.20-standard running on localhost.....1) DOWNLOAD MySQL 4.0.20-0.i386.rpm(s) or latest "Stable" Versions Download MySQL 4.0 rpms from mysql.com (Linux x86 RPM downloads section) to
/home/e-smith/files/users/admin/home/MySQL-Upgrade-SME.6.0 directory. ( I created "MySQL-Upgrade-SME.6.0" to use)
Download the following:MySQL-shared-compat-4.0.20-0.i386.rpm
(Dynamic client libraries
(including 3.23.x libraries) 4.0.20-0 479.7K link)MySQL-server-4.0.x-0.i386.rpm
(Server 4.0.20-0 9.8M link) MySQL-client-4.0.x-0.i386.rpm
(Client programs 4.0.20-0 2.6M link)MySQL-devel-4.0.x-0.i386.rpm
(Libraries and header files 4.0.20-0 925.7K link) Note: replace 4.0.x with current MySql STABLE version availaible (was 4.0.20 at time of writing) 2) STOP MYSQLservice mysqld stop
3) REMOVE OLD RPMSrpm -e --nodeps mysql mysql-server
rpm -e mysql-devel
rpm -e mysqlclient9
4) INSTALL NEW RPMSCd to the directory where you downloaded the rpms:rpm -Uvh MySQL-*.rpm
5) CONFIGUREchkconfig --levels 2345 mysql on
mv /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld
rm /etc/rc.d/rc7.d/S90mysqld
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc7.d/S90mysqld
/sbin/e-smith/config setprop mysqld LocalNetworkingOnly no
(to enable remote access)/sbin/e-smith/expand-template /root/.my.cnf
ln -s /usr/sbin/mysqld /usr/libexec/
(for conf-mysql-password script)service mysqld restart
Then to make sure that your grant tables are current when you update to the new version:/usr/bin/mysql_fix_privilege_tables
Upgrade Complete ( No Errors )