本文摘自PHP中文网,作者V,侵删。

问题:
执行命令安装mysql时出现如下报错:
1 2 3 4 | [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包
1 | [root@localhost install-files]# yum remove mysql-libs
|
执行之后,还要详细检查卸载MySQL安装的所有文件,否则在后续安装时还会发生各种错误。
相关教程推荐:centos教程
以上就是centos安装mysql报错了怎么办的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
CentOS与redhat有哪些区别
CentOS6.5系统怎么安装gcc
CentOS下不能ping通网络怎么解决
CentOS怎样建网站?
详解CentOS 7安装gnome图形界面
CentOS ios镜像文件的实例详解
如何解决CentOS不能全屏的问题
ssh无法连接CentOS7怎么办
linux怎么卸载mysql?
CentOS是linux吗
更多相关阅读请进入《CentOS》频道 >>
转载请注明出处:木庄网络博客 » centos安装mysql报错了怎么办