[root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm Preparing... ########################################### [100%] file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64 file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64 file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
原因是系统已经安装了其他版本的mysql-libs包导致不兼容。这里就可以看出提示在conflicts with file from packge 后面就是我们出现问题冲突的软件。
[root@localhost ~]# yum list | grep mysql mysql-libs.x86_64 5.1.61-1.el6_2.1 @updates apr-util-mysql.x86_64 1.3.9-3.el6_0.1 base bacula-director-mysql.x86_64 5.0.0-9.el6 base bacula-storage-mysql.x86_64 5.0.0-9.el6 base dovecot-mysql.x86_64 1:2.0.9-2.el6_1.1 base freeradius-mysql.x86_64 2.1.10-5.el6 base libdbi-dbd-mysql.x86_64 0.8.3-5.1.el6 base mod_auth_mysql.x86_64 1:3.0.0-11.el6_0.1 base mysql.x86_64 5.1.61-1.el6_2.1 updates mysql-bench.x86_64 5.1.61-1.el6_2.1 updates mysql-connector-java.x86_64 1:5.1.12-2.el6 base mysql-connector-odbc.x86_64 5.1.5r1144-7.el6 base mysql-devel.i686 5.1.61-1.el6_2.1 updates mysql-devel.x86_64 5.1.61-1.el6_2.1 updates mysql-embedded.i686 5.1.61-1.el6_2.1 updates mysql-embedded.x86_64 5.1.61-1.el6_2.1 updates mysql-embedded-devel.i686 5.1.61-1.el6_2.1 updates mysql-embedded-devel.x86_64 5.1.61-1.el6_2.1 updates mysql-libs.i686 5.1.61-1.el6_2.1 updates mysql-server.x86_64 5.1.61-1.el6_2.1 updates mysql-test.x86_64 5.1.61-1.el6_2.1 updates php-mysql.x86_64 5.3.3-3.el6_2.8 updates qt-mysql.i686 1:4.6.2-20.el6 base qt-mysql.x86_64 1:4.6.2-20.el6 base rsyslog-mysql.x86_64 4.6.2-12.el6 base