anthon_lx 发表于 2013-2-7 19:06:58

Linux AS4 下装mysql 的问题

在linux AS4 下装mysql 5.0.18.0,
# 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
# 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 ,不管是什么了,就装上了
# 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...             ###########################################
1:MySQL-shared-compat ###########################################
然后我又运行# rpm -e mysql-4.1.12-3.RHEL4.1
这次就一个警告
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
(不知道什么意思,忘高手解释,是系统保存一个备份吗?为什么呢?)
又执行,重装mysql 5.0.18.0
# 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...             ###########################################
1:MySQL-server-standard   ###########################################
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搞定了!
页: [1]
查看完整版本: Linux AS4 下装mysql 的问题