[How To] Increase import file size in PHPMyAdmin

By default when you want to import sql file size is 2MB in PHPMyAdmin.
That is PHP’s file upload limit.

To change maximum import file size do following steps.

  1. Find php.ini file
    $ locate php.ini
    [email protected]:/home/gevorgh#
  2. Edit php.ini file
    $ vim /etc/php5/apache2/php.ini
  3. Find following variables and change values as you need:
    post_max_size = 8M
    upload_max_filesize = 2M
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 8M
  4. Restart apache to take effect
    $ service apache restart

In this example we used Ubuntu 11.10


  1. Arjun May 12, 2015 Reply
  2. Aldrin Hartunian January 22, 2016 Reply
  3. Jody Banim May 25, 2016 Reply
  4. Zain October 31, 2018 Reply
  5. Anjani Kumar Rai October 19, 2019 Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.