——修改密码策略密码长度
mysql> set global validate_password_policy=0;
Query OK, 0 rows affected (0.00 sec)
mysql> set global validate_password_length=4;
Query OK, 0 rows affected (0.00 sec)
mysql> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘nancy’;
Query OK, 0 rows affected (0.01 sec)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/282776.html