資料庫 & ERP

(原創)downgrade MySQL On CentOS release 4.2

Get file
wget http://ftp.tn.edu.tw/Linux/mysql/mysql-3.23.58-9.i386.rpm
wget http://ftp.tn.edu.tw/Linux/mysql/mysql-devel-3.23.58-9.i386.rpm
wget http://ftp.tn.edu.tw/Linux/mysql/mysql-bench-3.23.58-9.i386.rpm
wget http://ftp.tn.edu.tw/Linux/mysql/mysql-server-3.23.58-9.i386.rpm
wget ftp://ftp.nluug.nl/pub/sunsite/distributions/smeserver/releases/7/os/i386/CentOS/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm


/etc/init.d/mysqld stop
rpm -e mysql-bench-4.1.12-3.RHEL4.1
rpm -e mysql-server-4.1.12-3.RHEL4.1
rpm -e mysql-devel-4.1.12-3.RHEL4.1
rpm -e --nodeps mysql-4.1.12-3.RHEL4.1
rpm -e --nodeps mysqlclient10-3.23.58-4.RHEL4.1
mv /var/lib/mysql /var/lib/mysql.bak

install mysql
rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm
rpm -ivh mysql*.rpm

vi +6 /etc/httpd/conf.d/auth_mysql.conf
change
LoadModule mysql_auth_module modules/mod_auth_mysql.so
to
#LoadModule mysql_auth_module modules/mod_auth_mysql.so

/etc/init.d/mysqld stop