我在 centos 上尝试安装 Maria DB 时出现以下错误
[root@server1 MariaDB]# rpm -i MariaDB-5.5.30-centos6-x86_64-common.rpm
warning: MariaDB-5.5.30-centos6-x86_64-common.rpm: Header V3 DSA/SHA1 Signature, key ID 1bb943db: NOKEY
file /etc/my.cnf from install of MariaDB-common-5.5.30-1.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-5.5.30-1.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64
答案1
我会避免使用rpm
并尝试安装它,yum
因为它倾向于自动(并且更明智)解决冲突。试试这个:
yum -y install MariaDB-*.rpm
编辑:运行以下命令可能也会有用:
yum remove mysql-server mysql-libs mysql-devel mysql*
只是为了理智。