Centos7安装MySQL8
1、查看是否安装过mysql
rpm -qa | grep -i mysql
2、删除mysql
yum -y remove MySQL-*
3、删除所有于mysql有关的文件
find / -name mysql
4、配置源
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
yum localinstall mysql80-community-release-el7-3.noarch.rpm
yum install mysql-community-client mysql-community-server
5、服务操作
#启动
service mysqld start
#重启
service mysqld restart
#停掉
service mysqld stop