Hi Community I am not able to upload the database of 1.4GB in adminer Need your help

I have increased these things in php.ini
upload_max_filesize = 20480M
post_max_size = 204800M
upload_max_size = 20480M
Here are the errors i am getting.
Warning : POST Content-Length of 872024605 bytes exceeds the limit of 536870912 bytes in Unknown on line 0

Warning : session_cache_limiter(): Session cache limiter cannot be changed after headers have already been sent in /var/www/html/adminer.php on line 172

Warning : session_name(): Session name cannot be changed after headers have already been sent in /var/www/html/adminer.php on line 172

Warning : session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in /var/www/html/adminer.php on line 172

Warning : session_start(): Session cannot be started after headers have already been sent in /var/www/html/adminer.php on line 172

Warning : Undefined global variable $_SESSION in /var/www/html/adminer.php on line 176

Warning : Undefined global variable $_SESSION in /var/www/html/adminer.php on line 178

Warning : Undefined global variable $_SESSION in /var/www/html/adminer.php on line 178

Fatal error : Uncaught Error: Undefined constant “SID” in /var/www/html/adminer.php:51 Stack trace: #0 /var/www/html/adminer.php(1413): sid() #1 /var/www/html/index.php(9): require_once(‘/var/www/html/a…’) #2 {main} thrown in /var/www/html/adminer.php on line 51

Hi @alisukhera :wave:

You will also need to adjust NGINX configuration to reflect client_max_body_size 2G; in order for NGINX to forward that much POST body to PHP

I think also you’ll want to adjust post_max_size and upload_max_filesize to 2048M instead of 204GB :sweat_smile:

Some previous solutions for this:

You can maybe also try compressing the .sql file with WinZIP or make a .tar.gz or .gz file (GZIP)

If those solutions don’t work, let us know!

Best regards,
Zach