执行 rpm -ivh MySQL-server-5.6.14-1.el6.i686.rpm,提示错误:
Preparing... ########################################### [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.6.14-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686
……
上面的错误是因为版本冲突所致,执行 rpm -qa|grep -i mysql 命令,查看现在系统中MySQL版本。
这时如果有的话就强制删除:rpm -e --nodeps mysql-libs-5.1.61-4.el6.i686(因为有包依赖,所以要强制删除)
再执行安装 rpm -ivh MySQL-server-5.1.7-0.i386.rpm 命令。