{"id":60,"date":"2024-01-05T10:26:11","date_gmt":"2024-01-05T02:26:11","guid":{"rendered":"http:\/\/blog.thirdbody.cn\/?p=60"},"modified":"2024-01-05T10:26:11","modified_gmt":"2024-01-05T02:26:11","slug":"mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e5%bc%80%e5%90%afip%e5%9c%b0%e5%9d%80%e5%a4%96%e7%bd%91%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"http:\/\/blog.thirdbody.cn\/index.php\/2024\/01\/05\/mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e5%bc%80%e5%90%afip%e5%9c%b0%e5%9d%80%e5%a4%96%e7%bd%91%e8%ae%bf%e9%97%ae\/","title":{"rendered":"mysql\u6570\u636e\u5e93\u5f00\u542fip\u5730\u5740\u5916\u7f51\u8bbf\u95ee"},"content":{"rendered":"<h3>\u66f4\u6539user\u8868\u4e2d\u7684\u8bb0\u5f55<\/h3>\n<ul>\n<li>\n<p>\u9009\u62e9mysql\u6570\u636e\u5e93<\/p>\n<pre><code class=\"language-mysql\">use mysql<\/code><\/pre>\n<\/li>\n<li>\n<p>\u66f4\u65b0user\u8868\u8bb0\u5f55<\/p>\n<pre><code class=\"language-mysql\">update user set host='%' where user ='root';<\/code><\/pre>\n<p>\u6b64\u65f6\uff0c\u4f7f\u7528Navicat\u5c1d\u8bd5\u8fde\u63a5\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/pictures-1258408207.cos.ap-nanjing.myqcloud.com\/other\/mysql_qx.png\" alt=\"\" \/><\/p>\n<p>\u4e0a\u56fe\u5219\u8868\u793a\u8fde\u63a5\u6210\u529f\uff0c\u82e5\u8fde\u63a5\u5931\u8d25\uff0c\u518d\u5728mysql\u4e2d\u8fd0\u884c\u5982\u4e0b\u4e24\u6761\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528root\u7528\u6237\u8fd0\u884c\uff1a<\/p>\n<pre><code class=\"language-mysql\">FLUSH PRIVILEGES; # \u5c06\u66f4\u6539\u5199\u5165\u5185\u5b58\nGRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION;   # \u6388\u6743<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u66f4\u6539user\u8868\u4e2d\u7684\u8bb0\u5f55 \u9009\u62e9mysql\u6570\u636e\u5e93 use mysql \u66f4\u65b0user\u8868\u8bb0\u5f55 update user  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[29,30],"class_list":["post-60","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other","tag-mysql","tag-30"],"_links":{"self":[{"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":1,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":62,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/posts\/60\/revisions\/62"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.thirdbody.cn\/index.php\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}