Can't import database through phpmyadmin Can't import database through phpmyadmin nginx nginx

Can't import database through phpmyadmin


Thanks @denys281, that helped me:

chmod -R 777 /var/lib/phpmyadmin/tmp


chown apache-user /var/lib/phpmyadmin/tmp

Replace apache-user with the user configured in /etc/apache2/envvars. Look for these settings:

export APACHE_RUN_USER=apache-userexport APACHE_RUN_GROUP=apache-group

That way you will give permissions for the user running on the web server access to the temp directory, without making it 777 (open to all users).


decrease the "upload_max_filesize = 128M" by 1 MB or so . this trick will work