For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser. Import large table phpmyadmin


Import large files (table or database) to mysql

Last update:
When trying to import large file such as table or database, you might get the following error "No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16."
How can you solve this issue? We will start with reproducing steps previous to this error to make sure we are talking about the same issue.

Step By Step on How to import file using phpMyAdmin

  1. Open phpMyAdmin and select database to which you will try to import data from file.
  2. Select the imoprt TAB
  3. Choose larg file size
  4. Click Go to start the import process

import large file to phpMyAdmin

If all goes well you will see that data imported correctly. But we are interested in cases where you get error saying something went wrong "No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16."

phpmyadmin max size file

First thing to do in order to solve issue of exiding max file size changing default setting in php.ini.
Go to the PHP folder locate php.ini file and open it in edit mode. If you are not sure where php.ini file is you can add info.php file with the following lines to show php info :

<?php
echo phpinfo();
?>
Go to your favorit browser and put the following url
🛈 http://localhost/info.php

On php info serch for the file php.ini location.

php ini location

Open php.ini file and edit the following parameters to increase sizes, in our example we will increase each parament in ten times but you will need to increase sizes to support your heavy files:

  1. upload_max_filesize increase from 2M to 20M
  2. post_max_size increase from 8M to 80M
  3. max_input_time increase from 60 to 600 (set -1 for unlimited time)
  4. memory_limit increase from 8M to 80M (maximum amount of memory could be 128MB)
  5. max_execution_time increase from 30 to 300

* I recommend you to add comment above each change in configuration files to allow you fast roll back.


Save changes to php.ini files and restart apache and try to import the heavy file again.

sudo /etc/init.d/apache2 restart

If you still get same error when trying to import heavy file using phpMyAdmin then let's try to import this heavy file using command line.

Import file using MySQL command line

Open terminal, put the following command to import data base file, replace username with your own database username, replace database mame and file name. mysql -u root -p myDB < fileToImport.sql

mysql -u [DB User Name] -p [Database Name]<[file to import] -p

Click 'Enter'. system will prompt for Password, type your database password and click enter again.


Cookie Policy


Last update: 14/06/2021 Version: 1.0
Following is an explaination on how and what cookies this site is using.
This site is currently using only necessary cookies for proper functionality, such as displaying content, logging in, validating your session, responding to your request for services, and other functions.
Most web browsers can be set to disable the use of cookies. However, if you disable these cookies, you may not be able to access features on our website.
Site is also using performance cookies to collect information about the use of the website, such as pages visited, traffic sources, users ’interests, content management, and other website measurements.
And functional Cookies that remember a user choices.
Site may use marketing and advertisement cookies to allow third parties to create, implement, operate and examine their digital marketing campaigns.
By accepting this notice you give us your consent to use all types of cookies.
Please check our privacy policy page and our cookie policy page on site to learn how you can disable our use of cookies.