{"id":161460,"date":"2020-09-13T08:15:58","date_gmt":"2020-09-13T00:15:58","guid":{"rendered":"http:\/\/4563.org\/?p=161460"},"modified":"2020-09-13T08:15:58","modified_gmt":"2020-09-13T00:15:58","slug":"%e5%b1%80%e5%9f%9f%e7%bd%91%e5%86%85%ef%bc%8c%e5%ae%a2%e6%88%b7%e7%ab%af%e6%97%a0%e6%b3%95%e8%bf%9e%e6%8e%a5-mysql-server-%e4%ba%86%ef%bc%8c%e6%8a%a5-lost-connection-to-mysql-server-at-reading-author","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=161460","title":{"rendered":"\u5c40\u57df\u7f51\u5185\uff0c\u5ba2\u6237\u7aef\u65e0\u6cd5\u8fde\u63a5 MySQL Server \u4e86\uff0c\u62a5 Lost connection to MySQL server at &#8216;reading authorization packet&#8217;"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5c40\u57df\u7f51\u5185\uff0c\u5ba2\u6237\u7aef\u65e0\u6cd5\u8fde\u63a5 MySQL Server \u4e86\uff0c\u62a5 Lost connection to MySQL server at &#8216;reading authorization packet&#8217;               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hbolive <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u80cc\u666f\uff1a\u5c40\u57df\u7f51\u5185\u4e00\u53f0 Win 2008 \u5b89\u88c5\u6709 MySQL 5.7 Server\uff0c2 \u5e74\u591a\u4e86\uff0cPC \u5ba2\u6237\u7aef A \uff08 win7 \uff09\u4e00\u76f4\u8fde\u63a5\u6b63\u5e38\uff1b<\/p>\n<p>\u8d77\u56e0\uff1a\u6628\u5929\u4e0b\u5348\u5728 A \u4e0a\u6d4b\u8bd5\u4e00\u4e2a golang \u7a0b\u5e8f\uff0c\u56e0\u4e3a go \u4e0d\u592a\u719f\uff0c\u7528 xorm\uff1aengine, err = xorm.NewEngine \u8fde MySQL \u7684\u65f6\u5019\uff0c\u662f\u5728\u4e00\u4e2a for \u5faa\u73af\u91cc\u8fde\u7684\uff0c\u5bc6\u7801\u5199\u9519\u4e86\uff0c\u4e5f\u6ca1 sleep\uff0c\u5bfc\u81f4\u77ed\u65f6\u95f4\u5bf9 MySQL \u4ea7\u751f\u4e86\u5927\u91cf\u8fde\u63a5\uff0c\u53d1\u73b0\u4e0d\u5bf9\u7acb\u523b\u7acb\u523b\u7ed3\u675f\u4e86 go \u7a0b\u5e8f<\/p>\n<p>\u7ed3\u679c\uff1a\u5c31\u518d\u4e5f\u8fde\u4e0d\u4e0a MySQL \u4e86\uff0c\u7528 Navicat \u8fde\u63a5\u62a5\uff1a2013 &#8211; Lost connection to MySQL server at &#8216;reading authorization packet&#8217;,system error 0 \u7528\u547d\u4ee4\u884c\u8fde\u63a5\u62a5\uff1a2013 &#8211; Lost connection to MySQL server at &#8216;reading authorization packet&#8217;,system error 2 \u90fd\u662f\u8fde\u63a5\u8d85\u65f6\uff0c\u7136\u540e\u62a5\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n<p>\u5904\u7406\uff1a\u67e5\u9605\u8d44\u6599\uff0c\u505a\u4e86\u5982\u4e0b\u5904\u7406\uff08\u4fee\u6539\u540e\u90fd\u91cd\u542f\u8fc7\u670d\u52a1\uff09\uff1a 1 \u3001\u8bbe\u7f6e skip-name-resolve 2 \u3001\u4fee\u6539 connect_timeout \u4e3a 20 \u79d2 3 \u3001max_connection_errors \u6211\u770b\u6709 200\uff0c\u5c31\u6ca1\u4fee\u6539 4 \u3001\u4e5f\u6709\u8bf4\u8fde\u63a5\u64cd\u4f5c\u9519\u8bef\u6b21\u6570\uff0c\u88ab\u670d\u52a1\u5668 ban \u4e86\uff0cmysqladmin flush-hosts 5 \u3001\u65b0\u5efa\u7528\u6237\uff0c\u7528\u65b0\u7528\u6237\u8fde\u63a5 6 \u3001\u7528\u5176\u4ed6\u5ba2\u6237\u7aef\u8fde\u8fd9\u53f0\u670d\u52a1\u5668\u6b63\u5e38 6 \u3001\u7528 A \u8fde\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u7684 MySQL Server \u4e5f\u6b63\u5e38<\/p>\n<p>\u90fd\u65e0\u6548\u3002\u6709\u4e24\u4e2a\u8001\u5916\u7684\u95ee\u9898\u5dee\u4e0d\u591a\uff0c\u6700\u540e\u8bf4\u662f\u7f51\u7edc\u7684\u539f\u56e0\uff0c\u6211\u8fd9\u80af\u5b9a\u4e0d\u662f\u4e86\u3002\u3002<\/p>\n<p>\u5b9e\u5728\u4e0d\u77e5\u9053\u600e\u4e48\u5904\u7406\uff08\u5e94\u8be5\u5c31\u662f\u8dd1 go \u7684\u65f6\u5019\u77ed\u65f6\u95f4\u5927\u91cf\u8fde\u63a5\u5931\u8d25\u9020\u6210\u7684\u5427\uff09\uff0c\u7279\u6765\u95ee\u4e0b\u5404\u4f4d\uff0c\u8c22\u8c22\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3487612\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dorothyREN <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u5e94\u8be5\u662f\u88ab\u670d\u52a1\u5668 ban \u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3487613\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PUBG98k <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u770b\u4f60\u7684\u7a0b\u5e8f\u662f\u5426\u6709\u4e00\u5927\u5806\u672a\u5173\u95ed\u7684\u8fde\u63a5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3487614\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u7740\u662f\u4f60\u77ed\u65f6\u95f4\u5927\u91cf\u8fde\u63a5\uff0c\u53ef\u80fd\u670d\u52a1\u5668\u7aef\u628a\u4f60 ip \u62c9\u9ed1\u4e86\uff0c\u4e5f\u5c31\u662f\u4e00\u8bf4\u7684 ban\uff0c\u4f60\u5f97\u770b\u4e0b\u6570\u636e\u5e93\u6240\u5728\u670d\u52a1\u5668\u7684\u9632\u5fa1\u7b56\u7565\uff0c\u6216\u8005\u4f60\u6362\u4e2a\u4f60\u7684 ip \u518d\u8bd5\u8bd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3487615\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noreplay <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u628a\u9632\u706b\u5899\u90fd\u5173                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3487616\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hbolive <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u60f3\u592a\u76d1\uff0c\u7edf\u4e00\u56de\u590d\u4e0a\u5404\u4f4d\uff0c\u867d\u7136\u77e5\u9053\u539f\u56e0\uff0c\u4f46\u6700\u540e\u4e5f\u4e0d\u77e5\u9053\u600e\u4e48\u89e3\u51b3\uff0c\u53ea\u6709\u6362\u4e2a IP\uff0c\u6362\u4e2a IP \u540e\u5c31\u884c\u4e86\uff0c\u7136\u540e\u5c06\u53e6\u4e00\u53f0\u7535\u8111\u6362\u6210\u6211\u539f\u6765\u7684 IP\uff0c\u9519\u8bef\u4e5f\u4e00\u6837\uff0c\u5c31\u662f IP \u88ab ban \u4e86\u3002\u3002<\/p>\n<p>@dorothyREN <br \/>@PUBG98k <br \/>@opengps <br \/>@noreplay                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5c40\u57df\u7f51\u5185\uff0c\u5ba2\u6237\u7aef\u65e0\u6cd5\u8fde\u63a5 MySQ&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/161460"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161460"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/161460\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161460"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}