{"id":209,"date":"2007-09-08T00:00:00","date_gmt":"2007-09-08T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=209"},"modified":"2007-09-08T00:00:00","modified_gmt":"2007-09-08T00:00:00","slug":"\u5728AS4\u4e0b\u5b89\u88dd\/\u5347\u7d1aMySql5\u554f\u984c.","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=209","title":{"rendered":"\u5728AS4\u4e0b\u5b89\u88dd\/\u5347\u7d1aMySql5\u554f\u984c."},"content":{"rendered":"<p>&nbsp;\u5b89\u88ddMySQL 5\u51fa\u932f <br \/>1. \u65e2\u4fbf\u5b89\u88ddRHEL\u6642\u6ca1\u6709\u9078\u64c7\u5b89\u88ddMySQL\uff0c\u5728\u5b89\u88ddMySQL5\u6642\u4e5f\u6703\u51fa\u932f\uff0c\u8aac\u8207MySQL4\u885d\u7a81<\/p>\n<p>2. \u5be6\u969b\u4e0aRHEL\u5b89\u88dd\u4e86\u4e00\u4e9bMySQL\u76f8\u95dc\u7684DBD\u3001OBDC\u3001PHP-MySQL\u7b49<\/p>\n<p>3.1.2 \u5378\u8f09MySQL4<\/p>\n<p>1. \u4f7f\u7528&ldquo;rpm -qa | grep mysql&rdquo;\u67e5\u770bMySQL4\u53ca\u5176\u76f8\u95dc\u7684\u5b89\u88dd\u8edf\u4ef6<\/p>\n<p>2. \u9010\u500b\u4f7f\u7528rpm &ndash;e &ndash;&ndash;nodeps \u5f3a\u5236\u5378\u8f09MySQL4<\/p>\n<p>3.1.3 \u5b89\u88ddMySQL5<\/p>\n<p>\u4f7f\u7528rpm &ndash;ivh\u6b63\u5e38\u5b89\u88dd\u5373\u53ef\u3002<\/p>\n<p>3.1.4 MySQL5\u7121\u6cd5\u5553\u52d5<\/p>\n<p>\u662f\u56e0\u70baSELinux\uff08\u5b89\u5168Linux\uff09\u4f7f\u80fd\u4e86\uff0c\u5c0e\u81f4MySQL5\u6ca1\u6709\u8a2a\u554f\u6b0a\u9650\u3002<\/p>\n<p>\u95dc\u9589SELinux\u6216\u914d\u7f6e\u76f8\u61c9\u7684\u76ee\u9332\u6b0a\u9650\u5373\u53ef\u3002<\/p>\n<p>3.1.5 \u9060\u7a0b\u8a2a\u554fMySQL<\/p>\n<p>\u4e0d\u7ba1\u7528\u4f55\u7a2e\u65b9\u5f0f\uff08\u7528\u81ea\u5df1\u5beb\u7684\u7a0b\u5e8f\u548cMySQL Query Browser\uff09\uff0c\u90fd\u7121\u6cd5\u9023\u63a5mysql\u6578\u64da\u5eab\uff0c\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n<p>Could not connect to the specified instance.<\/p>\n<p>Mysql error number 1130<\/p>\n<p>#HY000Host &#8216;hostname&#8217; is not allowed to connect to this MySQL server<\/p>\n<p>\u6b0a\u9650\u554f\u984c\uff0c\u6253\u958bmysql\u6578\u64da\u5eab\u4e2d\u7684user\u8868\uff0c\u628a\u4f60\u7528\u4f86\u9023\u63a5\u6578\u64da\u5eab\u7684\u7528\u6237\u6240\u5728\u90a3\u689d\u8a18\u9332\u7684host\u5b57\u6bb5\u6539\u6210%\u5c31\u884c\u4e86\u3002<\/p>\n<p>%\u8868\u793a\u53ef\u91cd\u4efb\u4f55\u5730\u65b9\u9023\u63a5\u5230mysql\u670d\u52d9\u5668\uff0cLOCALHOST\u8868\u793a\u53ea\u80fd\u5728mysql\u6240\u5728\u670d\u52d9\u5668\u9032\u884c\u9023\u63a5\u3002\u5728\u7528\u6237\u6388\u6b0a\u6642\u662f\u53ef\u80fd\u9650\u5b9aip\u5730\u5740\u6216\u5730\u5740\u6bb5\u9032\u884c\u9023\u63a5\u7684\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u67e5\u95b2mysql\u7528\u6237\u6388\u6b0a\u76f8\u95dc\u8cc7\u6599\uff0c\u53e6\u5916\u7576\u7528\u6237\u6388\u6b0a\u9805\u767c\u751f\u8b8a\u5316\u6642\u8acb\u66f4\u65b0\u6388\u6b0a\u8868\uff0c\u5426\u5247\u4e0d\u6703\u751f\u6548\u3002<\/p>\n<p>3.2 \u5982\u4f55\u91cd\u5553MySQL <\/p>\n<p>#service mysql restart<\/p>\n<p>3.3 \u505c\u6b62\u8207\u5553\u52d5MySQL<\/p>\n<p>\u8981\u5553\u52d5 MySQL \u7684\u65b9\u6cd5\uff1a\uff08\u4ee5\u672c\u6587\u5c07 MySQL \u5b89\u88dd\u5728 \/usr\/local\/mysql \u70ba\u4f8b\uff09 <br \/># \/usr\/local\/mysql\/share\/mysql.server start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u5b89\u88ddMySQL 5\u51fa\u932f 1. \u65e2\u4fbf\u5b89\u88ddRHEL\u6642\u6ca1\u6709\u9078\u64c7\u5b89\u88ddMySQL\uff0c\u5728\u5b89\u88ddMySQL5\u6642\u4e5f\u6703\u51fa\u932f\uff0c\u8aac\u8207MySQL4\u885d\u7a81 2. \u5be6\u969b\u4e0aRHEL\u5b89\u88dd\u4e86\u4e00\u4e9bMySQL\u76f8\u95dc\u7684DBD\u3001OBDC\u3001PHP-MySQL\u7b49 3.1.2 \u5378\u8f09MySQL4 1. \u4f7f\u7528&ldquo;rpm -qa | grep mysql&rdquo;\u67e5\u770bMySQL4\u53ca\u5176\u76f8\u95dc\u7684\u5b89\u88dd\u8edf\u4ef6 2. \u9010\u500b\u4f7f\u7528rpm &ndash;e &ndash;&ndash;nodeps \u5f3a\u5236\u5378\u8f09MySQL4 3.1.3 \u5b89\u88ddMySQL5 \u4f7f\u7528rpm &ndash;ivh\u6b63\u5e38\u5b89\u88dd\u5373\u53ef\u3002 3.1.4 MySQL5\u7121\u6cd5\u5553\u52d5 \u662f\u56e0\u70baSELinux\uff08\u5b89\u5168Linux\uff09\u4f7f\u80fd\u4e86\uff0c\u5c0e\u81f4MySQL5\u6ca1\u6709\u8a2a\u554f\u6b0a\u9650\u3002 \u95dc\u9589SELinux\u6216\u914d\u7f6e\u76f8\u61c9\u7684\u76ee\u9332\u6b0a\u9650\u5373\u53ef\u3002 3.1.5 \u9060\u7a0b\u8a2a\u554fMySQL \u4e0d\u7ba1\u7528\u4f55\u7a2e\u65b9\u5f0f\uff08\u7528\u81ea\u5df1\u5beb\u7684\u7a0b\u5e8f\u548cMySQL Query Browser\uff09\uff0c\u90fd\u7121\u6cd5\u9023\u63a5mysql\u6578\u64da\u5eab\uff0c\u63d0\u793a\u5982\u4e0b\uff1a Could not connect to the specified instance. Mysql error number 1130 #HY000Host &#8216;hostname&#8217; is not allowed to connect to this MySQL server \u6b0a\u9650\u554f\u984c\uff0c\u6253\u958bmysql\u6578\u64da\u5eab\u4e2d\u7684user\u8868\uff0c\u628a\u4f60\u7528\u4f86\u9023\u63a5\u6578\u64da\u5eab\u7684\u7528\u6237\u6240\u5728\u90a3\u689d\u8a18\u9332\u7684host\u5b57\u6bb5\u6539\u6210%\u5c31\u884c\u4e86\u3002 &hellip; <a href=\"https:\/\/www.strongd.net\/?p=209\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728AS4\u4e0b\u5b89\u88dd\/\u5347\u7d1aMySql5\u554f\u984c.<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}