個人CentOS版本經過從cat /etc/centos-release查看得知
python
CentOS Linux release 7.4.1708 (Core) mysql
所以須要yum刪除mariadb,而後安裝mysql80sql
刪除時提示以下:centos
正在刪除:
mariadb x86_64 1:5.5.56-2.el7 @anaconda 49 M
mariadb-libs x86_64 1:5.5.56-2.el7 @anaconda 4.4 M
mariadb-server x86_64 1:5.5.56-2.el7 @anaconda 58 M
爲依賴而移除:
MySQL-python x86_64 1.2.5-1.el7 @anaconda 284 k
akonadi-mysql x86_64 1.9.2-4.el7 @anaconda 9.6 k
perl-DBD-MySQL x86_64 4.023-5.el7 @anaconda 323 k
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
qt-mysql x86_64 1:4.8.5-15.el7_4 @updates 74 k
qt5-qtbase-mysql x86_64 5.6.2-1.el7 @anaconda 79 k
redhat-lsb x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-core x86_64 4.1-27.el7.centos.1 @anaconda 45 k
redhat-lsb-cxx x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-desktop x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-languages x86_64 4.1-27.el7.centos.1 @anaconda 814
redhat-lsb-printing x86_64 4.1-27.el7.centos.1 @anaconda 0.0
ide
而後yum安裝mysql80 community server,就正常了。post
安裝步驟能夠參考https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/#repo-qg-yum-fresh-installui
最後把依賴刪除的有用的包yum安裝回來就好了。通過實驗,只有akonadi-mysql包必須依賴mariadb,沒法安裝,其餘均可以安裝回來。spa