站长资讯网
最全最丰富的资讯网站

centos安装mysql报错了怎么办

centos安装mysql报错了怎么办

问题:

执行命令安装mysql时出现如下报错:

[root@localhost install-files]# rpm -ivh MySQL-server-5.6.27-1.el6.x86_64.rpm Preparing...                          ################################# [100%] file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64 file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64

原因:

系统已经安装了其他版本的mysql-libs包和mysql数据库文件导致不兼容。

解决方法:

执行如下命令下载mysql-libs包

[root@localhost install-files]# yum remove mysql-libs

执行之后,还要详细检查卸载MySQL安装的所有文件,否则在后续安装时还会发生各种错误。

相关教程推荐:centos教程

赞(0)
分享到: 更多 (0)