MySQL-show variables like .....返回:Empty set

MySQL-show variables like …返回:Empty set

解决办法:安装validate_plugin插件

mysql> install plugin validate_password soname 'validate_password.dll';  
Query OK, 0 rows affected (0.00 sec)   

mysql> show variables like "validate_password%";
+--------------------------------------+--------+  
| Variable_name                        | Value  |  
+--------------------------------------+--------+  
| validate_password_dictionary_file    |        |  
| validate_password_length             | 8      |  
| validate_password_mixed_case_count   | 1      |  
| validate_password_number_count       | 1      |  
| validate_password_policy             | MEDIUM |  
| validate_password_special_char_count | 1      |  
+--------------------------------------+--------+  
6 rows in set (0.00 sec)  

mysql> set global validate_password_length =6;
+--------------------------------------+--------+  
| Variable_name                        | Value  |  
+--------------------------------------+--------+  
| validate_password_dictionary_file    |        |  
| validate_password_length             | 6      |  
| validate_password_mixed_case_count   | 1      |  
| validate_password_number_count       | 1      |  
| validate_password_policy             | MEDIUM |  
| validate_password_special_char_count | 1      |  
+--------------------------------------+--------+  
6 rows in set (0.00 sec)  

mysql> set global validate_password_policy = LOW;//STRONG,MEDIUM,LOW

你可能感兴趣的:(MySQL,mysql)