{"id":9,"date":"2020-07-15T14:54:55","date_gmt":"2020-07-15T06:54:55","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=9"},"modified":"2021-03-27T14:47:53","modified_gmt":"2021-03-27T06:47:53","slug":"mysql-%e8%a7%a3%e9%99%a4%e6%95%b0%e6%8d%ae%e5%ba%93%e8%ae%bf%e9%97%aeip%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/mysql-%e8%a7%a3%e9%99%a4%e6%95%b0%e6%8d%ae%e5%ba%93%e8%ae%bf%e9%97%aeip%e9%99%90%e5%88%b6\/","title":{"rendered":"mysql  \u89e3\u9664\u6570\u636e\u5e93\u8bbf\u95eeip\u9650\u5236"},"content":{"rendered":"<p>#\u9996\u5148\u9700\u8981\u5173\u95ed\u9632\u706b\u5899#<\/p>\n<p>systemctl stop firewalld.service\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u505c\u6b62firewall<br \/>systemctl disable firewalld.service\u00a0 \u00a0 \u00a0 \u00a0 #\u7981\u6b62firewall\u5f00\u673a\u542f\u52a8<\/p>\n<p>&#8212; \u5141\u8bb8\u6240\u6709\u8fdc\u7a0b\u8fde\u63a5\u5230root\u6743\u9650\u4e0b\u7684\u6240\u6709\u6570\u636e\u5e93<\/p>\n<p>grant all privileges on *.* to root@&#8221;%&#8221; identified by &#8216;0&#8217; <span class=\"keyword\">with<\/span> <span class=\"keyword\">grant<\/span> <span class=\"keyword\">option<\/span>;<\/p>\n<p>#\u00a0 %\u8868\u793a\u4e0d\u9650\u5236\uff0c\u8f93\u5165\u5bf9\u5e94\u7684ip\u5730\u5740\u5219\u89e3\u9664\u5bf9\u5e94ip\u5730\u5740\u7684\u8bbf\u95ee\u9650\u5236\uff0c0\u8868\u793a\u5bc6\u7801\uff0c\u8f93\u5165\u5bf9\u5e94\u7684\u6570\u636e\u8bbf\u95ee\u5bc6\u7801<\/p>\n<p>&#8212; \u5237\u65b0(\u5fc5\u8981\u6267\u884c\u7684\u8bed\u53e5)<\/p>\n<p>flush privileges;<\/p>\n\n\n<p>\u521b\u5efa\u65b0\u7528\u6237\u5e76\u7ed9\u4e88\u6743\u9650\u767b\u5f55\u6570\u636e\u5e93<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>create user &#8216;gameking&#8217;@&#8217;%&#8217; identified by &#8216;root&#8217;<\/p>\n\n\n\n<p>grant all on *.* to &#8216;gameking&#8217;@&#8217;%&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#\u9996\u5148\u9700\u8981\u5173\u95ed\u9632\u706b\u5899# systemctl stop firewalld.service\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/mysql-%e8%a7%a3%e9%99%a4%e6%95%b0%e6%8d%ae%e5%ba%93%e8%ae%bf%e9%97%aeip%e9%99%90%e5%88%b6\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cmysql  \u89e3\u9664\u6570\u636e\u5e93\u8bbf\u95eeip\u9650\u5236\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/9"}],"collection":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":8,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}