{"id":25,"date":"2020-04-23T09:18:14","date_gmt":"2020-04-23T03:48:14","guid":{"rendered":"https:\/\/www.renutech.in\/blogs\/?p=25"},"modified":"2020-04-23T09:18:16","modified_gmt":"2020-04-23T03:48:16","slug":"how-to-import-export-large-massive-mysql-database-on-shared-hosting-localhost-working","status":"publish","type":"post","link":"https:\/\/www.renutech.in\/blogs\/how-to-import-export-large-massive-mysql-database-on-shared-hosting-localhost-working\/","title":{"rendered":"How to Import &#038; Export Large &#038; Massive Mysql Database on Shared Hosting &#038; Localhost? &#8211; Working"},"content":{"rendered":"\n<p>It is very easy to work on small size of Mysql Database. But, on the other hand somewhere it\u2019s tough to manage Database with more than 100K records. Today we are showing you the best way to handle <strong>Export &amp; Import of large MySQL database. \u00a0\u00a0<\/strong><\/p>\n\n\n\n<p>We will go through all process in <strong>Scenario wise:<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Scenario 1: Our website and database is live on Shared Hosting and our Database size is more than 500M.<\/h4>\n\n\n\n<p>If you want to export whole database through <strong>PHPMYADMIN <\/strong>interface in one go. Then it is almost not possible due to lack of configuration in <strong>my.ini<\/strong> file in shared hosting. It always breaks your download file and you will not get all data in your exported database sql file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"183\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image.png\" alt=\"\" class=\"wp-image-27\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image.png 624w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-300x88.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><em><strong>Note:<\/strong> Always check the whole database on local and match the rows count in table before importing some other location \/ server.<\/em><\/p>\n\n\n\n<p><strong>Recommended Process:<\/strong><\/p>\n\n\n\n<p>In Shared Hosting, there is a backup functionality under Files.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"211\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-1.png\" alt=\"\" class=\"wp-image-28\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-1.png 624w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-1-300x101.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>\u00a0Click on Backup and start to take fresh backup. \u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-2.png\" alt=\"\" class=\"wp-image-29\" width=\"578\" height=\"199\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-2.png 520w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-2-300x103.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"130\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-3.png\" alt=\"\" class=\"wp-image-30\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-3.png 624w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-3-300x63.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>When backup will be prepared, you can download whole zip file or partial database backup also.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"230\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-4.png\" alt=\"\" class=\"wp-image-31\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-4.png 585w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-4-300x118.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<p>With this backup way, we will get whole database backup quickly.<\/p>\n\n\n\n<p>This is the major challenge almost all server admin or developer face who work on Shared Hosting.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Scenario 2:&nbsp; Want to import Heavy Database on Local Server.<\/h4>\n\n\n\n<p>Whatever backup you have downloaded, it is very important to check that MySQL Database is correct or not. So, we need to import that heavy or large database in our local server (XAMPP\/ LAMPP\/ WAMP).<\/p>\n\n\n\n<p>Through the PHPMYADMIN interface, again it is almost impossible to upload such a huge file .sql through import functionality.<\/p>\n\n\n\n<p>Here, I will recommend using few Tools.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Tool 1: MySQL Workbench<\/h5>\n\n\n\n<p>It is a professional tool and generally use in big enterprises to manage and handle MySQL &amp; MariaDB.<\/p>\n\n\n\n<p>Install MySQL Workbench and start to connect with new connection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"326\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-5.png\" alt=\"\" class=\"wp-image-32\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-5.png 625w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-5-300x156.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p><em><strong>Note:<\/strong> Make Sure you mysqld service is active and running on your Server \/ System<\/em><\/p>\n\n\n\n<p>In the Management tab, click on \u201cData Import \/ Restore\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"326\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-6.png\" alt=\"\" class=\"wp-image-33\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-6.png 625w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-6-300x156.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p>Select the path where you have placed .sql file and Select schema (DB)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"332\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-7.png\" alt=\"\" class=\"wp-image-34\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-7.png 625w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-7-300x159.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p>In the next tab, Click Start Import and process will start.<\/p>\n\n\n\n<p>You can use MySQL Workbench to manage Cloud based Hosting like AWS.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Scenario 3: Upload \/ Import large database on shared Hosting.<\/h4>\n\n\n\n<p>In shared hosting, again it is almost not possible to import heavy database through PHPMYADMIN interface. And you cannot use MySQL Workbench here because shared hosting never provides Public Instance or Host to access Database.<\/p>\n\n\n\n<p>So, here we are going to use another tool.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Tool 2: adminer.php (single file)<\/h5>\n\n\n\n<p>Download this adminer.php file and upload it on your shared hosting anywhere through FTP.<\/p>\n\n\n\n<p>Access the adminer.php file on browser.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"268\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-8.png\" alt=\"\" class=\"wp-image-35\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-8.png 624w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-8-300x129.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Login through credentials.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"138\" src=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-9.png\" alt=\"\" class=\"wp-image-36\" srcset=\"https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-9.png 625w, https:\/\/www.renutech.in\/blogs\/wp-content\/uploads\/2020\/04\/image-9-300x66.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p>Here you will get import options.<\/p>\n\n\n\n<p>I would suggest using \u201cFrom Server\u201d option.<\/p>\n\n\n\n<p>Upload your sql file at same location where you have placed adminer.php file on Server.<br>Rename the sql file to \u201cadminer.sql\u201d<\/p>\n\n\n\n<p>And, just click \u201cRun File\u201d<\/p>\n\n\n\n<p>Also, always uncheck Stop on Error<\/p>\n\n\n\n<p>When you will uncheck, it means import process will not be stop after any error.&nbsp; It may take time, but definitely it will import your whole database.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is very easy to work on small size of Mysql Database. But, on the other hand somewhere it\u2019s tough to manage Database with more than 100K records. Today we are showing you the best way to handle Export &amp; Import of large MySQL database. \u00a0\u00a0 We will go through [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":37,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[9,7,5,6,8],"class_list":["post-25","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","tag-adminer","tag-mysql","tag-phpmyadmin","tag-shared-hosting","tag-workbench"],"_links":{"self":[{"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/posts\/25\/revisions\/38"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/media\/37"}],"wp:attachment":[{"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.renutech.in\/blogs\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}