Centos中mysql修改密码策略并修改密码
1.获取初始密码vim /var/log/mysqld.log2.修改密码(注:只有修改初始密码后才可以进行下一步操作)ALTER USER 'root'@'localhost' IDENTIFIED BY 'Ww_123456';3.查询当前密码策略show variables like '%password%';4.修改密码策略(1) 将密码强度设置为简单set global validate_password_policy=LOW;(2) 将密码长度设置为6位set g