解决办法之重新安装:
-
1、安装wget
yum -y install wget
-
2、安装配置yum源
-
2.1 下载安装包
wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
-
2.2 安装mysql
rpm -ivh mysql57-community-release-el7-8.noarch.rpm
-
3、安装mysql服务
cd /etc/yum.repos.d yum -y install mysql-server
-
4、启动 mysql
systemctl start mysqld
-
5、mysql开机启动
systemctl enable mysqld