{"id":88,"date":"2015-03-15T04:48:24","date_gmt":"2015-03-14T17:48:24","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=88"},"modified":"2022-12-02T11:38:58","modified_gmt":"2022-12-02T00:38:58","slug":"how-to-import-a-large-sql-database-on-a-shared-web-host-like-hostgator","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-import-a-large-sql-database-on-a-shared-web-host-like-hostgator\/","title":{"rendered":"How to import a large SQL database on a shared web host like Hostgator"},"content":{"rendered":"<h3>Moving a large WordPress Multisite Database to Hostgator Shared Hosting<\/h3>\n<p>Recently we were faced with the challenge of moving a large WordPress Multisite from Amazon EC2 over to another shared web host with CPanel on it. We knew this was going to be a problem as quite often shared web hosts have an upload limit for SQL databases &#8211; In this case it was 50MiB. \u00a0The size of the file we were trying to import was 264MiB when zipped.<\/p>\n<p>So how did we overcome this limitation? \u00a0We can&#8217;t use the shell being shared hosting. \u00a0We used an open source PHP program aptly named &#8220;Big Dump&#8221;. \u00a0I know there&#8217;s certain images that spring to mind \u00a0when you first hear of this program. Luckily when I got to the website to download the file we were presented with an image of a piece of earthmoving equipment &#8211; Thank heavens for that!<\/p>\n<p><a href=\"https:\/\/4it.com.au\/kb\/wp-content\/uploads\/2015\/03\/bigdump-1.jpg\"><img class=\"aligncenter size-full wp-image-89\" data-original=\"https:\/\/4it.com.au\/kb\/wp-content\/uploads\/2015\/03\/bigdump-1.jpg\" alt=\"bigdump\" width=\"300\" height=\"215\" \/><\/a><\/p>\n<p>What this software promises to do is upload chunks of the SQL database at a time (default is 3000 lines) to avoid the PHPMyadmin import limit and it does just that!<\/p>\n<p>All you need to do is download and follow the instructions on the Big Dump Page located\u00a0<a href=\"http:\/\/www.ozerov.de\/bigdump\/you-need\/\" target=\"_blank\" rel=\"noopener nofollow\">here<\/a>. \u00a0It&#8217;s quite simple really.<\/p>\n<ol>\n<li>Upload the SQL database and Big Dump script to a folder on your website (make sure you transfer the files using ASCII or binary when it says to)<\/li>\n<li>Edit the file with your database details<\/li>\n<li>Run the PHP Script<\/li>\n<\/ol>\n<p>We did come across one problem though, we still hit a resource limit. \u00a0All we did in this change the settings to pause for 5 seconds in between each 3000 lines and we were good to go. \u00a0Essentially we uploaded our 264MiB file in under an hour and it works perfectly.<\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Moving a large WordPress Multisite Database to Hostgator Shared Hosting Recently we were faced with the challenge of moving a large WordPress Multisite from Amazon EC2 over to another shared web host with CPanel on it. We knew this was going to be a problem as quite often shared web hosts have an upload limit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[256],"article-tag":[33,204,203,205,32],"class_list":["post-88","article","type-article","status-publish","format-standard","hentry","article-category-uncategorized","article-tag-hostgator","article-tag-import-database-mysql-wordpress","article-tag-import-large-database-mysql","article-tag-mysql-import-large-database-file","article-tag-php"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":3,"sum_votes":13},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/88\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=88"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}