日期:2014-05-16  浏览次数:21295 次

centos6 安装Mysql出现的问题
1.rpm -i MySQL-server-5.5.21-1.linux2.6.x86_64.rpm 

  file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.21-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.47-4.el6.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.21-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.47-4.el6.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.21-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.47-4.el6.x86_64

2.rpm -e mysql-libs-5.1.47-4.el6.x86_64
error: Failed dependencies:
  libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.el6.x86_64
  libmysqlclient.so.16()(64bit) is needed by (installed) perl-DBD-MySQL-4.013-3.el6.x86_64
  libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.el6.x86_64
  libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) perl-DBD-MySQL-4.013-3.el6.x86_64
  mysql-libs is needed by (installed) postfix-2:2.6.6-2.el6.x86_64

怎么解决,总是卸载不了mysql-libs-5.1.47-4.el6.x86_64,自己的mysql安装不了,要是yum remove mysql-libs-5.1.47-4.el6.x86_64,那么会卸载crontabs等那么重启虚拟机之后,系统就崩溃了 怎么办?谢谢

------解决方案--------------------
先找到mysqlclient

rpm -qa | grep -i mysqlclient

然后remove掉mysqlclient 然后再remove lib