我在我的ubuntu服務器上安裝的mySQL/phpMyAdmin目前拒絕允許任何用戶使用我嘗試過的任何密碼創建。錯誤永遠是:mySQL密碼策略拒絕所有嘗試創建用戶
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
我從來沒有與MySQL的其他設備,服務器和XAMPP /本地主機都收到了這個錯誤。但是,這是一個新的服務器安裝。
例如,命令行上的MySQL終端上,任何試圖創建一個用戶(具有極高的隨機密碼)失敗
mysql> CREATE USER 'ses'@'%' IDENTIFIED BY 'yIO8v3hVai0zosaD';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> CREATE USER 'ses'@'%' IDENTIFIED BY 'yIO8v3hVai0zosaDyIO8v3hVai0zosaDyIO8v3hVai0zosaD';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
同樣的事情與phpMyAdmin
在底部有以下錯誤
Warning in ./libraries/dbi/DBIMysqli.class.php#261
mysqli_query(): (HY000/1819): Your password does not satisfy the current policy requirements
Backtrace
./libraries/dbi/DBIMysqli.class.php#261: mysqli_query(
object,
string 'SELECT PASSWORD(\'rSxYcnCcO2fhhKgD\') AS `password`;',
integer 0,
)
./libraries/DatabaseInterface.class.php#244: PMA_DBI_Mysqli->realQuery(
string 'SELECT PASSWORD(\'rSxYcnCcO2fhhKgD\') AS `password`;',
object,
integer 1,
)
./libraries/DatabaseInterface.class.php#1944: PMA_DatabaseInterface->tryQuery(
string 'SELECT PASSWORD(\'rSxYcnCcO2fhhKgD\') AS `password`;',
object,
integer 1,
boolean false,
)
./libraries/server_privileges.lib.php#5055: PMA_DatabaseInterface->fetchSingleRow(string 'SELECT PASSWORD(\'rSxYcnCcO2fhhKgD\') AS `password`;')
./libraries/server_privileges.lib.php#5179: PMA_getHashedPassword(string 'rSxYcnCcO2fhhKgD')
./libraries/server_privileges.lib.php#4176: PMA_getSqlQueriesForDisplayAndAddUser(
string 'test-accountdb',
string '%',
string '',
)
./server_privileges.php#167: PMA_addUser(
NULL,
string 'test-accountdb',
string '%',
NULL,
boolean true,
)
編輯:添加的結果爲MySQL validate_password%
變量
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 |
+--------------------------------------+--------+
如果你運行這個命令,你看到了什麼? 'SHOW VARIABLES LIKE'validate_password%';' – pmahomme
謝謝你的回覆。我已經添加了驗證密碼的結果。我之前曾檢查過這個,但它看起來並不常見。 – element11
雅你嘗試過的密碼看起來像他們將被允許根據這些值。 my.ini文件中是否有任何引用'validate_password'的內容? – pmahomme