centos安装mysql报错了怎么办

centos安装mysql报错了怎么办,第1张

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教程

以上就是centos安装mysql报错了怎么办的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/712166.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-24
下一篇 2022-04-24

发表评论

登录后才能评论

评论列表(0条)

保存