选择合适的yum源进行配置
https://repo.mysql.com/
--nogpgcheck 不进行gpg校验
配置mysql yum源
yum install -y https://repo.mysql.com/mysql80-community-release-el7-7.noarch.rpm
安装客户端
yum install -y mysql-community-client --nogpgcheck
安装服务端
yum -y install mysql-community-server --nogpgcheck
Root权限启动服务
systemctl status mysqld
查看mysql密码
grep "password" /var/log/mysqld.log
网友评论