{"id":2187,"date":"2013-07-07T14:22:00","date_gmt":"2013-07-07T06:22:00","guid":{"rendered":"http:\/\/rmohan.com\/?p=2187"},"modified":"2013-07-07T14:22:00","modified_gmt":"2013-07-07T06:22:00","slug":"how-to-grant-privileges-to-users-in-mysql","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2187","title":{"rendered":"How to Grant Privileges to Users in MySQL"},"content":{"rendered":"<h1>How to Grant Privileges to Users in\u00a0MySQL<\/h1>\n<p>&nbsp;<\/p>\n<p>MySQL stores all its username and password data in a special database named mysql. You can add users to this database and specify the databases to which they will have access with the grant command, which has the syntax.<\/p>\n<h4>sql&gt; grant all privileges on database.* to username@\u201dservername\u201d identified by \u2018password\u2019;<\/h4>\n<p>The next step is to write the privilege changes to the mysql.sql database using the flush privileges command.<\/p>\n<h4>sql&gt; flush privileges;<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>How to Grant Privileges to Users in MySQL <\/p>\n<p>&nbsp;<\/p>\n<p>MySQL stores all its username and password data in a special database named mysql. You can add users to this database and specify the databases to which they will have access with the grant command, which has the syntax.<\/p>\n<p> sql&gt; grant all privileges on database.* to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2187"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2187"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2187\/revisions"}],"predecessor-version":[{"id":2189,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2187\/revisions\/2189"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}