Tag Archives: size limit

Ubuntu: Change the File Size Limit for phpMyAdmin SQL Dump Imports CodeUnit 19 NOV 2010

phpmyadmin logoWorking with the web-based phpMyAdmin can sometimes be a bit of a lesson in frustration, particularly when you start bumping your head against its various limitations. One such annoying limit is the default 2MB upload limit applied for SQL file imports.

The good news is that this limit is actually not a hard and fast part of phpMyAdmin any more – and changing it to something a bit larger to handle those bigger databases is pretty simple to achieve!

So let’s get started then.

The size limitation is actually controlled by the PHP implementation powering the web server that is dishing up the phpMyAdmin portal, meaning that changing the default limits imposed by the PHP configuration will in turn adjust the limits imposed by phpMyAdmin.

The first step is thus to open up the php.ini configuration file for editing.

gksudo gedit /etc/php5/apache2/php.ini

Once open, search for the following three settings and adjust them accordingly to suit your upload needs – e.g. change 2M to 16M.