一、系统更新
1、查看系统版本:
2、Yum update
二、安装MYSQL
1、查询系统中已安装的mariadb并删除,避免与MYSQL冲突
[root@dns ~]# rpm -qa | grep mariadb
mariadb-libs-5.5.60-1.el7_5.x86_64
[root@dns ~]# rpm -e --nodeps mariadb-libs
2、添加官方的yum源并安装YUM源
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
yum localinstall mysql57-community-release-el7-8.noarch.rpm
//修改安装源etc/yum.repos.d/mysql-community.repo)
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-commu