問題:
執(zhí)行命令安裝mysql時出現(xiàn)如下報錯:
[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
原因:
系統(tǒng)已經(jīng)安裝了其他版本的mysql-libs包和mysql數(shù)據(jù)庫文件導(dǎo)致不兼容。
解決方法:
執(zhí)行如下命令下載mysql-libs包
[root@localhost install-files]# yum remove mysql-libs
執(zhí)行之后,還要詳細(xì)檢查卸載MySQL安裝的所有文件,否則在后續(xù)安裝時還會發(fā)生各種錯誤。
相關(guān)教程推薦:centos教程