Error Message: 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

Today I was trying to import a number of databases into MySQL using the phpmyadmin console, and got this 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

After some investigation, I found it was caused by a file upload size limit configured in the php.ini file.  This limit can be amended using the following command:

sudo nano /etc/php5/apache2/php.ini

Find the entry called upload_max_filesize, and configure it with a more appropriate size

upload_max_filesize = 200M

Once you save the file, you will need to restart Apache:

sudo service apache2 restart

You should now be able to import you backup using phpmyadmin.