wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
# EL6是Red Hat 6.x,CentOS 6.x和CloudLinux 6.x的下载
# EL5是Red Hat 5.x,CentOS 5.x和CloudLinux 5.x的下载。
# EL7是Red Hat 7.x,CentOS 7.x和CloudLinux 7.x的下载。
sudo yum localinstall mysql57-community-release-el7-11.noarch.rpm
sudo yum repolist enabled | grep "mysql.*-community.*"
yum repolist all | grep mysql
yum repolist enabled | grep mysql
#EL8 默认提供了mysql模块,我们需要关闭他才能使我们的mysql repository packages 可见。
yum module disable mysql
# 执行安装
sudo yum install mysql-community-server
# 启动mysql
sudo service mysqld start
# 查看myql status
sudo service mysqld status
# 查看密码
cat /var/log/mysqld.log | grep password
网友评论