标签:div sql bsp localhost 需要 oca font 用户 ati
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 satisfy
标签:div sql bsp localhost 需要 oca font 用户 ati
原文地址:https://www.cnblogs.com/alpha-cat/p/12865998.html