{"id":737,"date":"2026-01-29T06:34:16","date_gmt":"2026-01-29T06:34:16","guid":{"rendered":"https:\/\/blog.gpst.net.cn:4008\/?p=737"},"modified":"2026-01-29T06:34:53","modified_gmt":"2026-01-29T06:34:53","slug":"mysql8-2061%e9%94%99%e8%af%af%e7%9a%84%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=737","title":{"rendered":"MySQL8 2061\u9519\u8bef\u7684\u5904\u7406"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Last_IO_Errno: 2061\n                Last_IO_Error: error connecting to master 'repl@210.14.75.1:3306' - retry-time: 60 retries: 1 message: Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u9519\u8bef\u539f\u56e0\u8be6\u89e3<\/h3>\n\n\n\n<p><code>caching_sha2_password<\/code> \u662f MySQL 8.0 \u53ca\u4ee5\u4e0a\u7248\u672c\u7684\u9ed8\u8ba4\u8ba4\u8bc1\u63d2\u4ef6\uff0c\u5b83\u6709\u4e00\u4e2a\u5b89\u5168\u7279\u6027\uff1a<strong>\u9ed8\u8ba4\u8981\u6c42\u901a\u8fc7 SSL \u52a0\u5bc6\u8fde\u63a5\u6765\u8fdb\u884c\u8ba4\u8bc1<\/strong>\u3002\u4f60\u7684\u4ece\u5e93\u5c1d\u8bd5\u4ee5\u666e\u901a\u65b9\u5f0f\u8fde\u63a5\u4e3b\u5e93\uff0c\u89e6\u53d1\u4e86\u8fd9\u4e2a\u5b89\u5168\u9650\u5236\uff0c\u56e0\u6b64\u62a5\u51fa &#8220;Authentication requires secure connection&#8221; \u9519\u8bef\u3002<\/p>\n\n\n\n<p>\u767b\u5f55\u4e3b\u5e93 MySQL \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u786e\u8ba4 <code>have_ssl<\/code> \u4e3a <code>YES<\/code>\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"595\" src=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-119.png\" alt=\"\" class=\"wp-image-739\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-119.png 621w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-119-300x287.png 300w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/figure>\n\n\n\n<p>\u4fee\u6539\u4ece\u5e93\u7684\u590d\u5236\u8fde\u63a5\u914d\u7f6e\uff0c\u6dfb\u52a0ssl\u76f8\u5173\u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-- \u5148\u505c\u6b62\u590d\u5236\nSTOP SLAVE;\n\n-- \u4fee\u6539\u4e3b\u5e93\u8fde\u63a5\u4fe1\u606f\uff0c\u542f\u7528 SSL\nCHANGE MASTER TO\n  MASTER_HOST='210.14.75.1',\n  MASTER_PORT=3306,\n  MASTER_USER='repl',\n  MASTER_PASSWORD='\u4f60\u7684\u4e3b\u5e93repl\u7528\u6237\u5bc6\u7801',\n  MASTER_SSL=1,  -- \u542f\u7528SSL\n  MASTER_AUTO_POSITION=1;\n\n-- \u542f\u52a8\u590d\u5236\nSTART SLAVE;\n\n-- \u68c0\u67e5\u590d\u5236\u72b6\u6001\nSHOW SLAVE STATUS\\G;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9519\u8bef\u539f\u56e0\u8be6\u89e3 caching_sha2_password \u662f MySQL 8.0 \u53ca\u4ee5\u4e0a\u7248\u672c\u7684\u9ed8\u8ba4\u8ba4\u8bc1\u63d2\u4ef6\uff0c\u5b83\u6709\u4e00\u4e2a\u5b89\u5168\u7279\u6027\uff1a\u9ed8\u8ba4\u8981\u6c42\u901a\u8fc7 SSL \u52a0\u5bc6\u8fde\u63a5\u6765\u8fdb\u884c\u8ba4\u8bc1\u3002\u4f60\u7684\u4ece\u5e93\u5c1d\u8bd5\u4ee5\u666e\u901a\u65b9\u5f0f\u8fde\u63a5\u4e3b\u5e93\uff0c\u89e6\u53d1\u4e86\u8fd9\u4e2a\u5b89\u5168\u9650\u5236\uff0c\u56e0\u6b64\u62a5\u51fa &#8220;Authentication requires secure connection&#8221; \u9519\u8bef\u3002 \u767b\u5f55\u4e3b\u5e93 MySQL \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u786e\u8ba4 have_ssl \u4e3a YES\uff1a \u4fee\u6539\u4ece\u5e93\u7684\u590d\u5236\u8fde\u63a5\u914d\u7f6e\uff0c\u6dfb\u52a0ssl\u76f8\u5173\u53c2\u6570\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-8"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=737"}],"version-history":[{"count":1,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":741,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/737\/revisions\/741"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}