phpmyadmin "no data received to import" error, how to fix?
I HAD THE SAME PROBLEM AND THIS WORKED FOR ME :
Try these different settings in C:\wamp\bin\apache\apache2.2.8\bin\php.ini
Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
Then restart your xampp or wamp to take effect
or stop then start only apache in xammp
I had the same problem on Windows. Turns out it was caused by the temporary directory PHP uses for uploads. By default this is C:\Windows\Temp, which is not writable for PHP.
In php.ini, add:
upload_tmp_dir = C:\inetpub\temp
Make sure to remove any other upload_tmp_dir
settings. Set permissions on C:\inetpub\temp
so IUSR
and IIS_IUSRS
have write permission. Restart the web server and you should be fine.
Check permissions for you upload directory. You can find its path inside /etc/phpmyadmin/apache.conf
file.
In my case (Ubuntu 14.04) it was:
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
So I checked permissions for /var/lib/phpmyadmin/tmp
and it turns out that the directory wasn't writable for my Apache user (which is by default www-data
). It could be the case especially if you changed your apache user like I do.