How to create a six character password in MySQL 5.7

后端 未结 7 795
星月不相逢
星月不相逢 2021-01-31 11:05

I need to create a user with a six character password in new MySQL on my mac. I know that the lowest setting in 5.7 will allows only eight characters. Is there any way to go aro

7条回答
  •  盖世英雄少女心
    2021-01-31 11:56

    Check current password policy rules by

    SHOW VARIABLES LIKE 'validate_password%';
    

    Now set new value of those variable:

    SET GLOBAL validate_password_length = 6 ; // that you like
    SET GLOBAL validate_password_policy = LOW ;
    

提交回复
热议问题