Linux MySQL8 Unknown system variable 'validate_password_policy'Your password does not satis
Posted 挪威森林猫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux MySQL8 Unknown system variable 'validate_password_policy'Your password does not satis相关的知识,希望对你有一定的参考价值。
1. 安装好mysql8.0 之后 , 用临时密码登进去
发现改密码不行 , 修改密码策略也不行 , 你需要 ,这样改密码
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘root_123R‘;
然后再运行以下指令
set global validate_password.policy=0; set global validate_password.length=1;
接着改上自己的简单密码: OK这样就好了 ,我这次的简单密码就是 ‘123456‘
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘123456‘;
2.创建用户.
CREATE USER ‘hive‘@‘localhost‘ IDENTIFIED BY ‘hive‘; CREATE USER ‘hive‘@‘%‘‘ IDENTIFIED BY ‘hive‘;
3.接着就是刷新和 授予权限
FLUSH PRIVILEGES; grant all privileges on *.* to ‘hive‘@‘%‘; grant all privileges on *.* to ‘hive‘@‘localhost‘;
以上是关于Linux MySQL8 Unknown system variable 'validate_password_policy'Your password does not satis的主要内容,如果未能解决你的问题,请参考以下文章
解决MySQL8.0报错:Unknown system variable 'validate_password_policy'
解决MySQL8.0报错:Unknown system variable 'validate_password_policy'
windows 10 mysql8 Server sent charset (255) unknown to the client. Please, report to the developers
PDO连接mysql8.0报PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to
07:mysql的unknown variable ‘xxxxx’
解决unknown import path "golang.org/x/sys/unix": unrecognized import path "golang.org/x