{"id":521,"date":"2020-03-08T23:20:49","date_gmt":"2020-03-08T14:20:49","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2020\/03\/08\/centos-8-mysql-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e5%be%8c\/"},"modified":"2020-03-08T23:20:49","modified_gmt":"2020-03-08T14:20:49","slug":"centos-8-mysql-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e5%be%8c","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/521","title":{"rendered":"CentOS 8 MySQL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c"},"content":{"rendered":"<p>mysql> SHOW VARIABLES LIKE &#8216;validate_password%&#8217;;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+<br \/>\n| Variable_name                        | Value  |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+<br \/>\n| validate_password.check_user_name    | ON     |<br \/>\n| validate_password.dictionary_file    |        |<br \/>\n| validate_password.length             | 8      |<br \/>\n| validate_password.mixed_case_count   | 1      |<br \/>\n| validate_password.number_count       | 1      |<br \/>\n| validate_password.policy             | MEDIUM |<br \/>\n| validate_password.special_char_count | 1      |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8211;+<br \/>\nmysql> set global validate_password.length=4;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nmysql> set global validate_password.policy=LOW;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nmysql> show variables like &#8216;validate_password%&#8217;;<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br \/>\n| Variable_name                        | Value |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br \/>\n| validate_password.check_user_name    | ON    |<br \/>\n| validate_password.dictionary_file    |       |<br \/>\n| validate_password.length             | 4     |<br \/>\n| validate_password.mixed_case_count   | 1     |<br \/>\n| validate_password.number_count       | 1     |<br \/>\n| validate_password.policy             | LOW   |<br \/>\n| validate_password.special_char_count | 1     |<br \/>\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br \/>\n7 rows in set (0.00 sec)<br \/>\n> CREATE USER &#8216;USER&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;PASSWORD&#8217;;<br \/>\n> GRANT ALL ON *.* TO &#8216;USER&#8217;@&#8217;localhost&#8217; WITH GRANT OPTION;<br \/>\n> FLUSH PRIVILEGES;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysql> SHOW VARIABLE<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,12],"tags":[],"class_list":["post-521","post","type-post","status-publish","format-standard","hentry","category-centos-8","category-mysql"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=521"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/521\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}