linux安装mysql出错( file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i6)

linux下安装MySQL出错!

 

[root@hadoop0 local]# rpm -i MySQL-server-5.5.31-2.el6.i686.rpm
        file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.5.31-2.el6.i686 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.5.31-2.el6.i686 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.5.31-2.el6.i686 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.5.31-2.el6.i686 conflicts with file from package mysql-libs-5.1.66-2.el6_3.i686

 

 

原因:已存在mysql-libs-5.1.66-2.el6_3.i686的库(这是linux自带的)所以需要先删除以前的库才能安装!

执行命令:

rpm -e mysql-libs-5.1.66-2.el6_3.i686 --nodeps 强制卸载!

然后查看:

rpm -qa|grep mysql

执行安装自己的mysql:

rpm -i mysqlxxxxx.rpm

 

ok!搞定!



你可能感兴趣的:(mysql,linux,出错)