下面是我在学习中获取的小知识哦,在这里和大家进行一个分享,如果还有不懂,那请看一下:网络课程
在linux下安装mysql中,与旧版本冲突的一些简单的解决办法
后附DBI作用。
下载了针对rhel4的mysql5.1.50的server包和client包,传到/root下,安装,发现与以前版本冲突,那么应该:
[root@localhost ~]# ls
anaconda-ks.cfg install.log MySQL-client-community-5.1.50-1.rhel4.i386.rpm
Desktop install.log.syslog MySQL-server-community-5.1.50-1.rhel4.i386.rpm
[root@localhost ~]# rpm -ivh My*
warning: MySQL-client-community-5.1.50-1.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL conflicts with mysql-4.1.20-1.RHEL4.1.i386
MySQL-server conflicts with mysql-server-4.1.20-1.RHEL4.1.i386
[root@localhost ~]# rpm -ivh MySQL-server-community-5.1.50-1.rhel4.i386.rpm
warning: MySQL-server-community-5.1.50-1.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL conflicts with mysql-4.1.20-1.RHEL4.1.i386
MySQL-server conflicts with mysql-server-4.1.20-1.RHEL4.1.i386
试试升级安装,也不行,那么就:
[root@localhost ~]# rpm -Uvh MySQL-server-community-5.1.50-1.rhel4.i386.rpm
warning: MySQL-server-community-5.1.50-1.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
libmysqlclient.so.14 is needed by (installed) mod_auth_mysql-2.6.1-2.2.i386
libmysqlclient.so.14 is needed by (installed) php-mysql-4.3.9-3.15.i386
libmysqlclient.so.14 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386
libmysqlclient.so.14 is needed by (installed) dovecot-0.99.11-4.EL4.i386
libmysqlclient.so.14 is needed by (installed) pe