A 413 Nginx error occurred while uploading the database through phpMyAdmin. the requested entity was too large as per the error.
If you are trying to upload large files and are seeing this error, it means the client_max_body_size value is too low.
You may access the nginx configuration file with the command:
sudo nano /etc/nginx/nginx.conf
It may also be located in /usr/local/nginx/conf/nginx.conf or /usr/local/etc/nginx/nginx.conf.
Add the following line within the http block
. . .
. . .
Save and exit (press CTRL + X, press Y and then press ENTER)
Now, check if the Nginx config file syntax is valid.
sudo nginx -t
If valid, restart Nginx service.
sudo systemctl restart nginx
You may also need to edit the php.ini config file.