MySQL:Your password does not satisfy the current policy requirements
環境:
報錯:
出現這個問題是因為安裝了外掛,如下:
具體規則是:
外掛的安裝啟用:
為阻止該外掛在執行時被刪除可在配置檔案中新增:
[mysqld]
plugin-load=validate_password.so
validate-password=FORCE_PLUS_PERMANENT
更多資訊:
https://dev.mysql.com/doc/refman/5.7/en/validate-password-plugin-installation.html
-
mysql> select version();
-
+------------+
-
| version() |
-
+------------+
-
| 5.7.17-log |
-
+------------+
-
1 row in set (0.00 sec)
-
mysql> create user repl@'192.168.100.51' identified by '123456';
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
-
mysql> select name,dl from mysql.plugin;
-
+-------------------+----------------------+
-
| name | dl |
-
+-------------------+----------------------+
-
| validate_password | validate_password.so |
-
+-------------------+----------------------+
- 1 row in set (0.00 sec)
-
mysql> SHOW VARIABLES LIKE 'validate_password%';
-
+--------------------------------------+--------+
-
| Variable_name | Value |
-
+--------------------------------------+--------+
-
| validate_password_check_user_name | OFF |
-
| 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 |
- +--------------------------------------+--------+
外掛的安裝啟用:
1.外掛對應的庫物件檔案需在配置選項plugin_dir指定的目錄中。
2.可使用--plugin-load=validate_password.so在server啟動時載入外掛,或者將plugin-load=validate_password.so寫入配置檔案。
3.也可以透過如下語句在server執行時載入外掛(會註冊進mysql.plugins表)mysql> INSTALL PLUGIN validate_password SONAME 'validate_password.so';
為阻止該外掛在執行時被刪除可在配置檔案中新增:
[mysqld]
plugin-load=validate_password.so
validate-password=FORCE_PLUS_PERMANENT
更多資訊:
https://dev.mysql.com/doc/refman/5.7/en/validate-password-plugin-installation.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2134180/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql錯誤詳解(1819):ERROR 1819 (HY000): Your password does not satisfy the current policy requirementsMySqlErrorUIREM
- 建立xtrbackup備份使用者 ERROR 1819 (HY000): Your password does not satisfy the current policy requirementsErrorUIREM
- Your host does not meet minimum requirements to run VMware workstation with hyper-v or device/credenUIREMdev
- 安裝 dingo/api 報錯:Your requirements could not be resolvedGoAPIUIREM
- homestead下安裝laravel報錯:Your requirements could not be...LaravelUIREM
- If you cannot remember your password for Recovery and Rescue for IBM LaptopREMIBMAPT
- MySQL:You must reset your password using ALTER USER statement before executing this statement.MySql
- mysql CURRENT_TIMESTAMP 和ON UPDATE CURRENT_TIMESTAMPMySql
- How to Reset the MySQL Root PasswordMySql
- Your CPU does not support long mode.Use a 32bit distribution.
- Your password has expired. To log in you must change it using a client that supports expired passworclient
- would dispatch back to the current handler URL [/doLogin] again. Check your ViewResolver setup!AIView
- MySQL中的CURRENT_TIMESTAMPMySql
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer
- MYSQL(解決方法):Client does not support authentication(轉)MySqlclient
- Filter-Policy過濾策略&Route-policyFilter
- Flashback Data Archive RequirementsHiveUIREM
- After mysql installation, we need to change the password of root as belowMySql
- mysql-proxy does not work with server/client authentication pluginsMySqlServerclientPlugin
- Laravel Policy 使用Laravel
- Your Prediction Gets As Good As Your DataGo
- 教你如何使用MySQL中CURRENT_TIMESTAMP時間戳MySql時間戳
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- Oracle WebLogic Default Password & Change PasswordOracleWeb
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMakMySqlErrorServerAPPAI
- Content Security Policy
- Laravel Policy 寫法Laravel
- @1-MYSQL當前使用者user()與current_user()MySql
- mysql5.5的一些函式_user()_current_user()MySql函式
- Your PHP installation appears to be missing the MySQL extension which is requirePHPAPPMySqlUI
- python生成requirements.txtPythonUIREM
- System Requirements for WebSphere Application ServerUIREMWebAPPServer
- python 生成requirements 檔案PythonUIREM
- makes the current sessionSession
- Your title
- MySQL8.0的caching_sha2_password問題MySql
- MYSQL解決error: 'Access denied for user 'root'@'localhost' (using password:MySqlErrorlocalhost
- MySQL 5.7啟動資料庫報錯'does not exist or is not executable'MySql資料庫