{"id":129,"date":"2017-10-16T03:38:00","date_gmt":"2017-10-16T03:38:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/how-to-create-database-in-mysq"},"modified":"2017-10-16T09:19:18","modified_gmt":"2017-10-16T09:19:18","slug":"create-database-in-mysql","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/mysql\/create-database-in-mysql","title":{"rendered":"Create Mysql Database in Linux Command Line"},"content":{"rendered":"<p>How to Create Database in MySQL in Linux Command Line<br \/>\nMySql DB Creation Procedure for RedHat Fedora Ubuntu Cent OS Debian Linux<\/p>\n<h2><span style=\"text-decoration: underline;\">Mysql Database in Command Line<\/span><\/h2>\n<p>Login to your MySQL server through console remote shell (putty)<\/p>\n<p>Example : If you want to create a database name = mytestdb and grant permission for user = testuser with password = testpasswd<br \/>\n<b>database name = mytestdb<br \/>\nUser Name = testuser<br \/>\nPassword\u00a0 = testpasswd<\/b><\/p>\n<pre><b> #mysql -u root -p ( enter the mysql root password)\r\n mysql&gt; create database mytestdb;\r\n mysql&gt; grant all privileges on mytestdb.* to testuser@localhost identified by 'testpasswd';\r\n mysql&gt; FLUSH PRIVILEGES;<\/b>\r\n <b>mysql&gt;show databases;\r\n mysql&gt; exit <\/b><\/pre>\n<p>This will create mytestdb and enable access for testuser form localhost<br \/>\nIf you want to connect<b> mysql form remote serve<\/b>r, then replace localhost with your remote server ip<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Create Database in MySQL in Linux Command Line MySql DB Creation Procedure for RedHat Fedora Ubuntu Cent OS Debian Linux Mysql Database in Command Line Login to your&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/mysql\/create-database-in-mysql\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":749,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/129\/revisions\/749"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}