{"id":255,"date":"2013-11-02T17:07:17","date_gmt":"2013-11-02T15:07:17","guid":{"rendered":"http:\/\/evcz.tk\/blog\/?p=255"},"modified":"2013-11-02T17:07:36","modified_gmt":"2013-11-02T15:07:36","slug":"google-cloud-sql-adding-a-new-user-with-grant-privilege","status":"publish","type":"post","link":"https:\/\/evcz.tk\/blog\/2013\/11\/02\/google-cloud-sql-adding-a-new-user-with-grant-privilege\/","title":{"rendered":"Google cloud SQL &#8211; adding a new user with GRANT privilege"},"content":{"rendered":"<p>Google cloud sql does not support the<\/p>\n<pre lang=\"mysql\">GRANT ALL PRIVILEGES on * . * <\/pre>\n<p>command&#8230;<\/p>\n<p>in order to create a new user with (almost) all the privileges access the cloud sql console and run these commands:<\/p>\n<pre lang=\"mysql\">CREATE USER 'newuser'@'%' IDENTIFIED BY 'newpassword';\r\nGRANT ALL ON `%`.* TO 'newuser'@'%' IDENTIFIED BY 'newpassword';<\/pre>\n<p>Those will create a user named &#8220;newuser&#8221; with password &#8220;newpassword&#8221; able to connect from every host and able to create new users while granting them access to other databases<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google cloud sql does not support the GRANT ALL PRIVILEGES on * . * command&#8230; in order to create a new user with (almost) all the privileges access the cloud sql console and run these commands: CREATE USER &#8216;newuser&#8217;@&#8217;%&#8217; IDENTIFIED BY &#8216;newpassword&#8217;; GRANT ALL ON `%`.* TO &#8216;newuser&#8217;@&#8217;%&#8217; IDENTIFIED BY &#8216;newpassword&#8217;; Those will create a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/evcz.tk\/blog\/2013\/11\/02\/google-cloud-sql-adding-a-new-user-with-grant-privilege\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Google cloud SQL &#8211; adding a new user with GRANT privilege&#8221;<\/span><\/a><\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":3,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evcz.tk\/blog\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}