wget -i -c https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm yum -y install mysql80-community-release-el7-1.noarch.rpm
##如果不加--nogpgcheck会报错Error:GPG check FAILED。这由于源key错误导致的dnf或者yum(软件包管理器)安装软件失败。 yum -y install mysql-community-server --nogpgcheck
systemctl start mysqld.service #启动数据库
grep "password" /var/log/mysqld.log #查看临时密码
mysql -uroot -p
输入密码 #如果确定输入的没有问题,一直报YES的错误,那么可以修改密码,重新来过
https://www.cnblogs.com/zlshtml/p/16794490.html
如果需要的话:创建用户并赋予权限
https://www.cnblogs.com/zlshtml/p/16611794.html
标签:在线,com,community,mysql8.0,https,mysql,yum,安装,cnblogs From: https://www.cnblogs.com/zlshtml/p/16795402.html