1、安装mysql之前需要确保系统中有libaio依赖,使用如下命令:
shell> rpm -qa | grep -i libaio
libaio-0.3.109-13.el7.x86_64
如果没有先下载安装
shell> rpm -Uvh libaio-0.3.109-13.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:libaio-0.3.109-13.el7 ################################# [100%]
2、检查是否安装老版本的MySQL和mariadb,如果有先卸载,确保不存在 /etc/my.cnf 文件
shell> rpm -qa | grep mysql
shell> rpm -qa | grep mariadb
mariadb-libs-5.5.52-1.el7.x86_64
shell> yum remove mariadb-libs
... ...
Removed:
mariadb-libs.x86_64 1:5.5.52-1.el7
Dependency Removed:
postfix.x86_64 2:2.10.1-6.el7 redhat-lsb-core.x86_64 0:4.1-27.e