How to create a six character password in MySQL 5.7

后端 未结 7 788
星月不相逢
星月不相逢 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 ;
    
    0 讨论(0)
提交回复
热议问题