<br>
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/webhostingchenna/domains/webhostingchennai.co.in/public_html/blog/wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php</b> on line <b>637</b><br>
{"id":157,"date":"2017-06-26T09:53:20","date_gmt":"2017-06-26T09:53:20","guid":{"rendered":"http:\/\/www.webhostingchennai.co.in\/blog\/?p=157"},"modified":"2017-06-29T10:47:55","modified_gmt":"2017-06-29T10:47:55","slug":"importing-mysql-file","status":"publish","type":"post","link":"https:\/\/www.webhostingchennai.co.in\/blog\/importing-mysql-file\/","title":{"rendered":"Importing Mysql file"},"content":{"rendered":"<p><strong><span style="">How to import SQL ( more than 50MB) through SSH<\/span><\/strong><\/p>\n<p><span style=""><strong>( i ) For already created Database:<\/strong><\/span><\/p>\n<p><strong>Step1 :<\/strong> Login to your SSH with root user.<\/p>\n<p><strong>Step2 :<\/strong> Use command<\/p>\n<pre><b>mysql -u <em>user_name<\/em> -p -h localhost <em>data_base_name<\/em> &lt; \/home\/<em>user_name<\/em>\/public_html\/sql file_name.sql<\/b><\/pre>\n<p><strong>Step3 : <\/strong>Enter the password to start restoring the database.<\/p>\n<p>&nbsp;<\/p>\n</p><p><span style=""><strong>( ii ) Creating and importing Database:<\/strong><\/span><\/p>\n<p><strong>Step1 :<\/strong> Login to your SSH with root user.<\/p>\n<p><strong>Step2 :\u00a0<\/strong>Enter into MySQL using &#8220;root&#8221; user identified by password.<\/p>\n<pre><em>#mysql -u root -p<\/em><\/pre>\n<p><strong>Step3 :<\/strong>Create the database<\/p>\n<pre><em>mysql&gt; CREATE DATABASE NEWDB;<\/em><\/pre>\n<p><strong>Step4 :<\/strong>Create the user<\/p>\n<pre><em>mysql&gt; CREATE USER 'newuser'@'localhsot' IDENTIFIED BY 'newpass';<\/em><\/pre>\n<p><strong>Step4 :\u00a0<\/strong>Grant ALL privileges onthe new database to the new User<\/p>\n<pre><em>mysql&gt; GRANT ALL PRIVILEGES ON NEWDB.* TO 'newuser'@'localhost' IDENTIFIED BY 'newpass';<\/em><\/pre>\n<p><strong>Step4 :\u00a0<\/strong>Insert data from source.sql<\/p>\n<pre><em>mysql&gt; SOURCE source.sql<\/em><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":11,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/157\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}</p></em></pre></strong></p></em></pre></strong></p></em></pre></strong></p></em></pre></strong></p></em></pre></strong></p></strong></p></strong></span></p></strong></p></em></em></em></b></pre></strong></p></strong></p></strong></span></p></span></strong></p>