{"id":865,"date":"2023-05-02T09:20:58","date_gmt":"2023-05-02T09:20:58","guid":{"rendered":"http:\/\/robinluo.top\/?p=865"},"modified":"2023-05-02T09:20:58","modified_gmt":"2023-05-02T09:20:58","slug":"mysql-%e6%b7%bb%e5%8a%a0%e7%94%a8%e6%88%b7","status":"publish","type":"post","link":"https:\/\/robinluo.top\/?p=865","title":{"rendered":"mysql \u6dfb\u52a0\u7528\u6237"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">CREATE USER 'test1'@'localhost' IDENTIFIED BY 'test1';\n\nCREATE USER \"\u7528\u6237\"@\"host\" IDENTIFIED BY \"\u5bc6\u7801\"\n\n\u5f53\u4e0d\u9650\u5b9ahost\u540d\u5b57 \u7528\u901a\u914d\u7b26 %\n\n\n\u6388\u6743\uff08\u8bb0\u5f97\u6267\u884c flush priviledges\uff09\n\nGRANT priv_type ON database.table TO Name@Host\n\ngrant all on *.* to 'test1'@'%';\n\ngrant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by \u2018123\u2032;\n\n\n<\/pre>\n\n\n\n<h2>\u6743\u9650\u5217\u8868<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER <\/pre>\n\n\n\n<p>\u4e00\u822c\u90fd\u662f\u9650\u5b9a\u67d0\u4e2a\u7528\u6237\u5728\u67d0\u4e2a\u5e93\u7684\u5168\u90e8\u89d2\u8272<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CREATE USER &#8216;test1&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;test1&#8217;; CREATE USER &#8220;\u7528\u6237&#8221;@&#8221;host&#8221; IDENTIFIED BY &#8220;\u5bc6\u7801&#8221; \u5f53\u4e0d\u9650\u5b9ahost\u540d\u5b57 \u7528\u901a\u914d\u7b26 % \u6388\u6743\uff08\u8bb0\u5f97\u6267\u884c flush priviledges\uff09 GRANT priv_type ON database.table TO Name@Host grant all on *.* to &#8216;test1&#8217;@&#8217;%&#8217;; grant select,insert,update,delete,create,drop on vtdc.employee to joe@10.163.225.87 identified by \u2018123\u2032; \u6743\u9650\u5217\u8868 SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[139],"_links":{"self":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/865"}],"collection":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=865"}],"version-history":[{"count":2,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/865\/revisions"}],"predecessor-version":[{"id":867,"href":"https:\/\/robinluo.top\/index.php?rest_route=\/wp\/v2\/posts\/865\/revisions\/867"}],"wp:attachment":[{"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robinluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}