{"id":83,"date":"2022-06-02T09:35:34","date_gmt":"2022-06-02T01:35:34","guid":{"rendered":"https:\/\/www.zhangc.net\/?p=83"},"modified":"2022-06-02T11:03:40","modified_gmt":"2022-06-02T03:03:40","slug":"mysql%e8%ae%be%e7%bd%ae%e7%ae%80%e5%8d%95%e5%af%86%e7%a0%81%e6%8a%a5%e9%94%99error-1819-hy000-your-password-does-not-satisfy-the-current-policy-requirements","status":"publish","type":"post","link":"https:\/\/www.zhangc.net\/index.php\/2022\/06\/02\/mysql%e8%ae%be%e7%bd%ae%e7%ae%80%e5%8d%95%e5%af%86%e7%a0%81%e6%8a%a5%e9%94%99error-1819-hy000-your-password-does-not-satisfy-the-current-policy-requirements\/","title":{"rendered":"mysql\u8bbe\u7f6e\u7b80\u5355\u5bc6\u7801\u62a5\u9519ERROR 1819 (HY000): Your password does not satisfy the current policy requirements"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">MySQL5.6.6\u7248\u672c\u4e4b\u540e\u589e\u52a0\u4e86\u5bc6\u7801\u5f3a\u5ea6\u9a8c\u8bc1\u63d2\u4ef6validate_password\uff0c\u76f8\u5173\u53c2\u6570\u8bbe\u7f6e\u7684\u8f83\u4e3a\u4e25\u683c\u3002<br>\u4f7f\u7528\u4e86\u8be5\u63d2\u4ef6\u4f1a\u68c0\u67e5\u8bbe\u7f6e\u7684\u5bc6\u7801\u662f\u5426\u7b26\u5408\u5f53\u524d\u8bbe\u7f6e\u7684\u5f3a\u5ea6\u89c4\u5219\uff0c\u82e5\u4e0d\u6ee1\u8db3\u5219\u62d2\u7edd\u8bbe\u7f6e\u3002\u5f71\u54cd\u7684\u8bed\u53e5\u548c\u51fd\u6570\u6709\uff1acreate user,grant,set password,password(),old password\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770bmysql\u5168\u5c40\u53c2\u6570\u914d\u7f6e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u95ee\u9898\u5176\u5b9e\u4e0emysql\u7684validate_password_policy\u7684\u503c\u6709\u5173\u3002<br>\u67e5\u770b\u4e00\u4e0bmsyql\u5bc6\u7801\u76f8\u5173\u7684\u51e0\u4e2a\u5168\u5c40\u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql> SHOW VARIABLES LIKE 'validate_password%';\n+--------------------------------------+--------+\n| Variable_name | Value |\n+--------------------------------------+--------+\n| validate_password_check_user_name | OFF |\n| validate_password_dictionary_file | |\n| validate_password_length | 8 |\n| validate_password_mixed_case_count | 1 |\n| validate_password_number_count | 1 |\n| validate_password_policy | MEDIUM |\n| validate_password_special_char_count | 1 |\n+--------------------------------------+--------+\n7 rows in set (0.00 sec)\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u964d\u4f4e\u9a8c\u8bc1\u7b49\u7ea7\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql> SET GLOBAL validate_password.policy = 0;\n\u6216\u8005\nmysql> SET GLOBAL validate_password.policy=LOW;\n\u67e5\u770b\u6539\u5b8c\u7684\u72b6\u6001\nmysql> SHOW VARIABLES LIKE 'validate_password%';\n+--------------------------------------+--------+\n| Variable_name | Value |\n+--------------------------------------+--------+\n| validate_password_check_user_name | OFF |\n| validate_password_dictionary_file | |\n| validate_password_length | 8 |\n| validate_password_mixed_case_count | 1 |\n| validate_password_number_count | 1 |\n| validate_password_policy | LOW|\n| validate_password_special_char_count | 1 |\n+--------------------------------------+--------+\n7 rows in set (0.00 sec)\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL5.6.6\u7248\u672c\u4e4b\u540e\u589e\u52a0\u4e86\u5bc6\u7801\u5f3a\u5ea6\u9a8c\u8bc1\u63d2\u4ef6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":5,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangc.net\/index.php\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}