1.下载安装包
wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm
2.安转软件源
rpm -Uvh mysql80-community-release-el7-3.noarch.rpm
3.安装mysql服务端
yum install -y mysql-community-server
4.启动mysql
service mysqld start
5.修改mysql临时密码
5.1查看临时密码
cat /var/log/mysqld.log
5.2复制密码使用root登录mysql(直接黏贴就好)
mysql -uroot -p
5.3设置2个全局参数(不设置密码会修改不成功 貌似是限制密码的规则的)
mysql7执行以下名称:
set global validate_password_policy=0;
set glob