{"id":1472,"date":"2019-07-06T09:05:19","date_gmt":"2019-07-06T00:05:19","guid":{"rendered":"https:\/\/www.ish.org\/blog\/?p=1472"},"modified":"2019-07-06T09:05:19","modified_gmt":"2019-07-06T00:05:19","slug":"mysql%e3%81%ae%e8%aa%8d%e8%a8%bc%e6%96%b9%e5%bc%8f%e3%81%ae%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/www.ish.org\/blog\/?p=1472","title":{"rendered":"mysql\u306e\u8a8d\u8a3c\u65b9\u5f0f\u306e\u5909\u66f4"},"content":{"rendered":"<p>mysql80\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u901a\u5e38\u306fcaching_sha2_password\u3067\u8a8d\u8a3c\u3059\u308b\u306e\u3067\u3059\u304c\u3001pkg\u3067\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30de\u30b7\u30f3\u306fpkg\u304cmysql57\uff08\u3061\u3087\u3063\u3068\u524d\u307e\u3067\u306fmysql56\uff09\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001mysql80-client\u3092\u5c0e\u5165\u3067\u304d\u305a\u3001\u8a8d\u8a3c\u30e2\u30b8\u30e5\u30fc\u30eb\u3092mysql_native_password\u306b\u5909\u66f4\u3057\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3002<!--more--><br \/>\n\u3044\u3064\u3082\u5909\u66f4\u65b9\u6cd5\u3092\u5fd8\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u5099\u5fd8\u306e\u305f\u3081\u306b\u3084\u308a\u65b9\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><code>% mysql -u root -p<br \/>\nmysql&gt; select user, host, plugin from mysql.user;<br \/>\n+--------+--------------+-----------------------+<br \/>\n| user\u00a0\u00a0   | host \u00a0 \u00a0 \u00a0 \u00a0        | plugin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0                |<br \/>\n+--------+--------------+-----------------------+<br \/>\n| root \u00a0   | localhost \u00a0\u00a0   | caching_sha2_password |<br \/>\n...(snip)...<br \/>\n| foo\u00a0\u00a0\u00a0    | % \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0           | caching_sha2_password |<br \/>\n| foo \u00a0\u00a0    | host1.domain | mysql_native_password |<br \/>\n+--------+--------------+-----------------------+<br \/>\nmysql&gt; create user 'foo'@'host2.domain' identified with mysql_native_password by 'new_password';<br \/>\nmysql&gt; select user, host, plugin from mysql.user;<br \/>\n+--------+--------------+-----------------------+<br \/>\n| user \u00a0     | host \u00a0 \u00a0 \u00a0 \u00a0               | plugin \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0                               |<br \/>\n+--------+--------------+-----------------------+<br \/>\n| root \u00a0     | localhost\u00a0\u00a0\u00a0      | caching_sha2_password |<br \/>\n...(snip)...<br \/>\n| foo \u00a0\u00a0      | % \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0                     | caching_sha2_password |<br \/>\n| foo \u00a0\u00a0       | host1.domain | mysql_native_password |<br \/>\n| foo \u00a0\u00a0      | host2.domain | mysql_native_password |<br \/>\n+--------+--------------+-----------------------+<br \/>\n<\/code><\/p>\n<p>\u3082\u3057\u3001foo@host2.domain\u304c\u65e2\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306fcreate user\u306e\u4ee3\u308f\u308a\u306balter user\u3092\u4f7f\u3046\u3053\u3068\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mysql80\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u901a\u5e38\u306fcaching_sha2_password\u3067\u8a8d\u8a3c\u3059\u308b\u306e\u3067\u3059\u304c\u3001pkg\u3067\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30de\u30b7\u30f3\u306fpkg\u304cmysql57\uff08\u3061\u3087\u3063\u3068\u524d\u307e\u3067\u306fmysql56\uff09\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001my &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.ish.org\/blog\/?p=1472\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;mysql\u306e\u8a8d\u8a3c\u65b9\u5f0f\u306e\u5909\u66f4&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-1472","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-misc"],"_links":{"self":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1472"}],"version-history":[{"count":11,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":1483,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1472\/revisions\/1483"}],"wp:attachment":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}