{"id":178,"date":"2009-07-22T17:14:15","date_gmt":"2009-07-22T17:14:15","guid":{"rendered":"http:\/\/dev001.dl\/yan\/wdp\/?p=178"},"modified":"2026-01-20T05:06:49","modified_gmt":"2026-01-20T05:06:49","slug":"sql-mysql","status":"publish","type":"post","link":"http:\/\/www.lalife.net\/?p=178","title":{"rendered":"SQL &#8212; MySQL"},"content":{"rendered":"<p><strong>Insert<\/strong><\/p>\n<p>INSERT INTO tablename (col1, col2) VALUES(&#8216;data1&#8217;, &#8216;data2&#8217; );<\/p>\n<p><strong>Grant<\/strong><br \/>\nGRANT ALL PRIVILEGES ON dbname.* to dbuser@localhost;<br \/>\nGRANT ALL PRIVILEGES ON dbname.* to dbuser@&#8221;%&#8221;;<br \/>\nGRANT SELECT ON dbname.dbtable to dbuser@&#8221;111.111.111.111&#8243;;<br \/>\nGRANT SELECT(colname) ON dbname.dbtable to dbuser@&#8221;111.111.111.111&#8243;;<\/p>\n<p>set password for username = password(&#8216;password&#8217;);<br \/>\nflush privileges;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Insert INSERT INTO tablename (col1, col2) VALUES(&#8216;data1&#8217;, &#8216;data2&#8217; ); Grant GRANT ALL PRIVILEGES ON dbname.* to dbuser@localhost; GRANT ALL PRIVILEGES ON dbname.* to dbuser@&#8221;%&#8221;; GRANT SELECT ON dbname.dbtable to dbuser@&#8221;111.111.111.111&#8243;; GRANT SELECT(colname) ON dbname.dbtable to dbuser@&#8221;111.111.111.111&#8243;; set password for username &hellip; <a href=\"http:\/\/www.lalife.net\/?p=178\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178"}],"version-history":[{"count":1,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":1954,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions\/1954"}],"wp:attachment":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}