{"id":6832,"date":"2024-11-14T08:21:33","date_gmt":"2024-11-14T00:21:33","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6832\/"},"modified":"2024-11-14T08:21:33","modified_gmt":"2024-11-14T00:21:33","slug":"%e6%9c%ac%e5%9c%b0navicat%e8%bf%9e%e6%8e%a5%e8%bf%9c%e7%a8%8bdocker-mysql%e5%a4%b1%e8%b4%a5%ef%bc%8c%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6832\/","title":{"rendered":"\u672c\u5730Navicat\u8fde\u63a5\u8fdc\u7a0bDocker MySQL\u5931\u8d25\uff0c\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172998738461706.jpg\" class=\"aligncenter\" title=\"\u672c\u5730Navicat\u8fde\u63a5\u8fdc\u7a0bDocker MySQL\u5931\u8d25\uff0c\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" alt=\"\u672c\u5730Navicat\u8fde\u63a5\u8fdc\u7a0bDocker MySQL\u5931\u8d25\uff0c\u600e\u4e48\u529e\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u672c\u5730\u8fde\u63a5\u8fdc\u7a0b\u5b89\u88c5\u7684\u5931\u8d25<\/strong><\/p>\n<p>\u65e0\u6cd5\u4ece\u672c\u5730\u4f7f\u7528navicat\u8fde\u63a5\u8fdc\u7a0bdocker\u5b89\u88c5\u7684mysql\uff0c\u5e76\u51fa\u73b0\u9519\u8bef\u63d0\u793a\u3002\u8fd9\u662f\u56e0\u4e3amysql 8\u4e2d\u7684\u7528\u6237\u5bc6\u7801\u52a0\u5bc6\u89c4\u5219\u5df2\u66f4\u6539\u4e3acaching_sha2_password\uff0c\u800c\u672c\u5730navicat\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u65e7\u7684\u52a0\u5bc6\u89c4\u5219mysql_native_password\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u82e5\u4e0d\u60f3\u5347\u7ea7\u672c\u5730navicat\u7684\u9a71\u52a8\uff0c\u53ef\u4ee5\u5c06mysql\u7528\u6237\u5bc6\u7801\u6539\u4e3amysql_native_password\u7684\u52a0\u5bc6\u89c4\u5219\uff1a<\/p>\n<pre>ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6267\u884c\u6b64\u547d\u4ee4\u540e\uff0c\u5373\u53ef\u4f7f\u7528\u65e7\u7684\u52a0\u5bc6\u89c4\u5219\u8fde\u63a5mysql\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6b64\u547d\u4ee4\u4f1a\u964d\u4f4e\u5bc6\u7801\u5b89\u5168\u6027\uff0c\u5efa\u8bae\u5347\u7ea7\u672c\u5730navicat\u7684\u9a71\u52a8\u4ee5\u4f7f\u7528\u8f83\u65b0\u7684\u52a0\u5bc6\u89c4\u5219\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u5730Navicat\u8fde\u63a5\u8fdc\u7a0bDocker MySQL\u5931\u8d25\uff0c\u600e\u4e48\u529e\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5730\u8fde\u63a5\u8fdc\u7a0b\u5b89\u88c5\u7684\u5931\u8d25 \u65e0\u6cd5\u4ece\u672c\u5730\u4f7f\u7528navicat\u8fde\u63a5\u8fdc\u7a0bdocker\u5b89\u88c5\u7684mysql\uff0c\u5e76\u51fa\u73b0\u9519\u8bef\u63d0\u793a\u3002\u8fd9\u662f\u56e0\u4e3amysql 8\u4e2d\u7684\u7528\u6237\u5bc6\u7801\u52a0\u5bc6\u89c4\u5219\u5df2\u66f4\u6539\u4e3acaching_sha2_password\uff0c\u800c\u672c\u5730navicat\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u65e7\u7684\u52a0\u5bc6\u89c4\u5219mysql_native_password\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a \u82e5\u4e0d\u60f3\u5347\u7ea7\u672c\u5730navicat\u7684\u9a71\u52a8\uff0c\u53ef\u4ee5\u5c06mysql\u7528\u6237\u5bc6\u7801\u6539\u4e3amysql_native_password\u7684\u52a0\u5bc6\u89c4\u5219\uff1a ALTER USER &#8216;root&#8217;@&#8217;%&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;123456&#8217;; \u767b\u5f55\u540e\u590d\u5236 \u6267\u884c\u6b64\u547d\u4ee4\u540e\uff0c\u5373\u53ef\u4f7f\u7528\u65e7\u7684\u52a0\u5bc6\u89c4\u5219\u8fde\u63a5mysql\u3002 \u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6b64\u547d\u4ee4\u4f1a\u964d\u4f4e\u5bc6\u7801\u5b89\u5168\u6027\uff0c\u5efa\u8bae\u5347\u7ea7\u672c\u5730navicat\u7684\u9a71\u52a8\u4ee5\u4f7f\u7528\u8f83\u65b0\u7684\u52a0\u5bc6\u89c4\u5219\u3002 \u4ee5\u4e0a\u5c31\u662f\u672c\u5730Navicat\u8fde\u63a5\u8fdc\u7a0bDocker MySQL\u5931\u8d25\uff0c\u600e\u4e48\u529e\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-6832","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=6832"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6832\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}