mysql5.7

作者: 早_wsm | 来源:发表于2020-05-01 22:13 被阅读0次

wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
rpm -Uvh mysql80-community-release-el7-3.noarch.rpm
yum install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
vim /var/log/mysqld.log
grep 'temporary password' /var/log/mysqld.log
ALTER USER 'root'@'localhost' IDENTIFIED BY '你的新密码';

注意,这里的密码至少包含一位数字,一位大写字母,一位特殊符号,总长度大于8个字符

相关文章

网友评论

      本文标题:mysql5.7

      本文链接:https://www.haomeiwen.com/subject/pckywhtx.html