This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Import large files in mysql using PhpMyAdmin

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.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Simple file upload script using php
  2. How to run a SQL query in phpMyAdmin
  3. Find Absolute Path Of A File Or Directory Using PHP
  4. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess

Leave a Reply

Comments (required)

Spam Protected