{"id":1177,"date":"2018-10-22T22:22:59","date_gmt":"2018-10-22T22:22:59","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=1177"},"modified":"2018-10-23T00:10:33","modified_gmt":"2018-10-23T00:10:33","slug":"how-create-mysql-user-database-and-set-privileges-to-user-on-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/22\/how-create-mysql-user-database-and-set-privileges-to-user-on-linux\/","title":{"rendered":"How create Mysql User, Database and set privileges to user on linux?"},"content":{"rendered":"<h3>How create Mysql User, Database and set privileges to user on linux?<\/h3>\n<p>How create Mysql User, Database and set privileges to user<\/p>\n<p>[ravi@linuxforfreshers.com~]$ mysql \u2013u<br \/>\nroot \u2013p<\/p>\n<p>password:<\/p>\n<p>mysql&gt; create user &#8216;ravi&#8217;@&#8217;localhost&#8217;<br \/>\nidentified by &#8216;123456&#8217;;<\/p>\n<p>mysql&gt; create database if not<br \/>\nexists `ravidb`;<\/p>\n<p>mysql&gt; grant all on ravidb.* to ravi@linuxforfreshers.com<br \/>\nidentified by &#8220;123456&#8221; with grant option;<\/p>\n<p>[ravi@linuxforfreshers.com~]$ mysql ravidb<br \/>\n-u ravi -p<\/p>\n<p>mysql&gt; show databases;<\/p>\n<p>mysql&gt; use ravidb;<\/p>\n<p><a href=\"https:\/\/www.linuxforfreshers.com\/2017\/06\/how-create-mysql-user-database-and-set.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How create Mysql User, Database and set privileges to user on linux? How create Mysql User, Database and set privileges to user [ravi@linuxforfreshers.com~]$ mysql \u2013u root \u2013p password: mysql&gt; create user &#8216;ravi&#8217;@&#8217;localhost&#8217; identified by &#8216;123456&#8217;; mysql&gt; create database if not exists `ravidb`; mysql&gt; grant all on ravidb.* to ravi@linuxforfreshers.com identified by &#8220;123456&#8221; with grant option; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/22\/how-create-mysql-user-database-and-set-privileges-to-user-on-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How create Mysql User, Database and set privileges to user on linux?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1177","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=1177"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1177\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/1177\/revisions\/1259"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=1177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=1177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=1177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}