在linux AS4 下装mysql 5.0.18.0,
[root@localhost home]# rpm -ivh MySQL-server-standard-5.0.18-0.rhel4.i386.rpm
提示
error: Failed dependencies:
MySQL conflicts with mysql-4.1.12-3.RHEL4.1.i386
然后我想卸载mysql-4.1.12-3.RHEL4.1.i386
[root@localhost home]# rpm -e mysql-4.1.12-3.RHEL4.1
又提示
error: Failed dependencies:
libmysqlclient.so.14 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386
郁闷了好久也没找到方法......
之后下载了一个MySQL-shared-compat-4.1.10-0.i386.rpm
地址是http://www.wesmo.com/rpm2html/contributed/RPMS/MySQL-shared-compat-4.1.10-0.i386.html
好象包括libmysqlclient.so.14 ,不管是什么了,就装上了
[root@localhost home]# rpm -ivh MySQL-shared-compat-4.1.10-0.i386.rpm
warning: MySQL-shared-compat-4.1.10-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-shared-compat ########################################### [100%]
然后我又运行[root@localhost home]# rpm -e mysql-4.1.12-3.RHEL4.1
这次就一个警告
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
(不知道什么意思,忘高手解释,是系统保存一个备份吗?为什么呢?)
又执行,重装mysql 5.0.18.0
[root@localhost home]# rpm -ivh MySQL-server-standard-5.0.18-0.rhel4.i386.rpm
warning: MySQL-server-standard-5.0.18-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server-standard ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
OK搞定了!