Import large files in mysql using PhpMyAdmin

This Tutorial Has Been Viewed 4,097 Times.

Sometimes when trying to upload some huge SQL file using PHPMYADMIN  we might come across this ERROR MESSAGE

Error: You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit

There is simple a fix for this:-
Find the config.inc.php file located in the phpmyadmin directory. In my case it is located here:

1 H:\xampp\phpMyAdmin\upload\config.inc.php

Find the line with $cfg['UploadDir'] on it and update it to:

1 $cfg['UploadDir'] = 'upload';

Create a directory called ‘upload’ within the phpmyadmin directory.

1 C:\wamp\apps\phpmyadmin3.2.0.1\upload\

Then place the large sql file that you are trying to import into the new upload directory. Now when you go onto the db import page within phpmyadmin console you will notice a drop down present that wasn’t there before – it contains all of the sql files in the upload directory that you have just created. You can now select this and begin the import.

The new option that you see in the import page will be similar to this

(Max: 16,384KiB)
Or
:

Imported file compression will be automatically detected from: None, gzip, zip
Please make sure that you just restart your Mysql server.

VN:F [1.9.13_1145]
Rating: 7.3/10 (3 votes cast)
VN:F [1.9.13_1145]
Rating: +3 (from 3 votes)

Import large files in mysql using PhpMyAdmin, 7.3 out of 10 based on 3 ratings

Incoming search terms:





You will also be interested in ,

Tags: , ,

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in Mysql, PHP (65 of 129 articles)