赞
踩
根据英文描述可知密码不够安全,但是我自己使用,想设置成123456
SHOW VARIABLES LIKE 'validate_password%';
需要关注的有4个参数validate_password.length,validate_password.policy,validate_password_length,validate_password_policy
Policy Tests Performed
0 or LOW Length
1 or MEDIUM Length; numeric, lowercase/uppercase, and special characters
2 or STRONG Length; numeric, lowercase/uppercase, and special characters; dictionary file
直接输入
set global validate_password_policy=0;
set global validate_password.policy=0;
set global validate_password_length=4;
set global validate_password.length=4;
然后即可修改密码为123456啦。
mysql> alter user 'root'@'localhost' identified by '123456';
Query OK, 0 rows affected (0.00 sec)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。