#安装
wget http:
//dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y
install mysql57-community-release-el7-
11.noarch.rpm
yum install mysql-community-
server
#获取临时密码
grep "password" /var/log/
mysqld.log
#用临时密码登陆
mysql -uroot -
p
#修改密码 默认的密码策略是 大小写字母数字特殊字符 至少8位
ALTER USER 'root'@
'localhost' IDENTIFIED BY
'Xx+12345';
转载请注明原文地址: https://mac.8miu.com/read-512129.html