标签:password flush show ges like token variable policy set
1.mysql官方yum源安装的mysql启动之后获取初始密码
cat /var/log/mysqld.log | grep password
2.命令进入mysql
mysql -u root -p password
3.修改密码约束规则
show variables like ‘validate_password%‘;
set global validate_password_policy=0;
4.修改密码
set password = password(‘your new password‘);
alter user ‘root‘@‘localhost‘ password expire never;(可选)
flush privileges;(可选)
标签:password flush show ges like token variable policy set
原文地址:https://www.cnblogs.com/lyklog/p/11969874.html