{"id":473,"date":"2020-07-10T12:36:00","date_gmt":"2020-07-10T04:36:00","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=473"},"modified":"2020-09-17T05:34:15","modified_gmt":"2020-09-16T21:34:15","slug":"gbase-8a%e9%9b%86%e7%be%a4%e6%95%b0%e6%8d%ae%e5%ba%93%e7%94%a8%e6%88%b7%e5%af%86%e7%a0%81%e9%95%bf%e5%ba%a6%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/473","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4\u6570\u636e\u5e93\u7528\u6237\u5bc6\u7801\u957f\u5ea6\u9650\u5236"},"content":{"rendered":"\n<p>GBase 8a\u96c6\u7fa4\u6570\u636e\u5e93\u7528\u6237\u5bc6\u7801\u957f\u5ea6\u9650\u5236\uff0c\u901a\u8fc7\u7cfb\u7edf\u53c2\u6570password_min_length\u8fdb\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u9ed8\u8ba4\u914d\u7f6e<\/strong>\ngbase&gt; show variables like '%password%';\n+------------------------------+-------+\n| Variable_name | Value |\n+------------------------------+-------+\n| _gbase_check_password_format | OFF |\n| old_passwords | OFF |\n| password_format_option | 0 |\n| password_life_time | 0 |\n| password_min_length | 0 |\n| password_reuse_max | 0 |\n| password_reuse_time | 0 |\n| report_password | |\n+------------------------------+-------+\n8 rows in set (Elapsed: 00:00:00.00)\n\n\n<strong>\u4fee\u6539\u6240\u6709\u7ba1\u7406\u8282\u70b9\u548c\u8ba1\u7b97\u8282\u70b9\u7684\u914d\u7f6e\u6587\u4ef6<\/strong>\uff0c\u589e\u52a0\npassword_min_length=8\n\u53c2\u6570\uff0c\u91cd\u542f\u96c6\u7fa4\u6240\u6709\u8282\u70b9\n\n\n[root@gbase86_1 zxq]# gccli\nGBase client 8.6.2.38-R1.105911. Copyright (c) 2004-2018, GBase. All Rights Reserved.\ngbase&gt; show variables like '%password%';\n+------------------------------+-------+\n| Variable_name | Value |\n+------------------------------+-------+\n| _gbase_check_password_format | OFF |\n| old_passwords | OFF |\n| password_format_option | 0 |\n| password_life_time | 0 |\n| password_min_length | 8 |\n| password_reuse_max | 0 |\n| password_reuse_time | 0 |\n| report_password | |\n+------------------------------+-------+\n8 rows in set (Elapsed: 00:00:00.02)\ngbase&gt; ^CAborted\n[root@gbase86_1 zxq]# gccli -umasked -pmasked\nGBase client 8.6.2.38-R1.105911. Copyright (c) 2004-2018, GBase. All Rights Reserved.\n\n<strong>-- \u5bc6\u7801\u957f\u5ea6\u4e0d\u7b26\u5408\u8981\u6c42\uff0c\u4e0d\u4f1a\u5bf9\u5f53\u524d\u5df2\u7ecf\u4f7f\u7528\u7684\u7528\u6237\u9020\u6210\u5f71\u54cd\u3002<\/strong>\ngbase&gt; use testdb;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\ngbase&gt; show tables;\n+------------------+\n| Tables_in_testdb |\n+------------------+\n| mask_default |\n| mask_default2 |\n| t |\n| t1 |\n| t2 |\n| t_enc |\n+------------------+\n6 rows in set (Elapsed: 00:00:00.00)\n\n<strong>-- \u53ea\u6709\u5728\u5bc6\u7801\u53d8\u52a8\uff0c\u521b\u5efa\u7528\u6237\u7b49\u8bbe\u8ba1\u5bc6\u7801\u65f6\uff0c\u624d\u4f1a\u68c0\u67e5\u3002<\/strong>\ngbase&gt; set password=password('masked');\nERROR 1802 (HY000): Invalid password format,length should &gt;= 8.\ngbase&gt; set password=password('masked12');\nQuery OK, 0 rows affected (Elapsed: 00:00:00.02)\ngbase&gt; ^CAborted\n[root@gbase86_1 zxq]# gccli -umasked -pmasked\nERROR 1045 (28000): Access denied for user 'masked'@'localhost' (using password: YES)\n[root@gbase86_1 zxq]# gccli -umasked -pmasked12\nGBase client 8.6.2.38-R1.105911. Copyright (c) 2004-2018, GBase. All Rights Reserved.\ngbase&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u96c6\u7fa4\u6570\u636e\u5e93\u7528\u6237\u5bc6\u7801\u957f\u5ea6\u9650\u5236\uff0c\u901a\u8fc7\u7cfb\u7edf\u53c2\u6570password_min_length\u8fdb\u884c\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[31],"class_list":{"0":"post-473","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-gbase8a","8":"tag-31"},"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":2,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/473\/revisions\/1383"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}