赞
踩
可以通过wget命令下载:
sudo wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
2. 安装Yum文件
sudo yum localinstall mysql80-community-release-el7-5.noarch.rpm
3. 检测是否成功添加Yum仓库
sudo yum repolist enabled | grep "mysql.*-community.*"
sudo yum repolist all | grep mysql
sudo yum-config-manager --disable mysql80-community
sudo yum-config-manager --enable mysql57-community
查看结果yum repolist all | grep mysql
sudo yum module disable mysql
sudo yum install mysql-community-server
sudo service mysqld start # 老版
sudo systemctl start mysqld
检查启动情况
systemctl status mysqld #或者
systemctl status mysqld.service
sudo grep 'temporary password' /var/log/mysqld.log
mysql -uroot -p
# 然后输入刚才查询的密码
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码!';
官方说明密码设置要求
validate_password is installed by default. The default password policy implemented by validate_password requires that passwords contain at least one uppercase letter, one lowercase letter, one digit, and one special character, and that the total password length is at least 8 characters
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。