Nginx does not import database in phpmyadmin: "413 Request Entity Too Large"

Question:

I have a 1.31MB database that I'm trying to import into my phpmyadmin, which on the side indicates that it supports importing databases with Maximum Size: 2,048KB.

But I'm not succeeding… every time I try to import it gives this message:

"413 Request Entity Too Large"

Answer:

You must set the client_max_body_size directive to a larger value than the default of 1MB. Her intention is to prevent customers from uploading too large since in most common cases it's just a form or a photo. Anything larger than 1MB would be suspicious, but not in your case. Add this to your configuration file:

client_max_body_size 5m;

Recommend not for too high a value here. Use as little as is good for you.

Scroll to Top