TO BE ABLE TO USE UPLOAD_LIMIT IN PHPMYADMIN DOCKER

Note: I am using the official https://hub.docker.com/r/phpmyadmin/phpmyadmin/ image.

I have had a small problem when trying to import a fairly large database using the PhpMyAdmin.

When you have large databases you need to increase the default php limits

post_max_size = 50M 
upload_max_filesize = 50M

The problem I have had is that according to the documentation this is modified with the environment variable "UPLOAD_LIMIT", but it didn't work for me.

In the end, after some research I found the problem.

On my server, a version was installed months ago, and as no specific version was specified ... the latest version available at that time was installed. Time passed and phpmyadmin was updated, it added the UPLOAD_LIMIT environment variable that did not exist before.

In short, the solution is to update the docker image you have on your machine.

docker pull phpmyadmin/phpmyadmin

After this, you have to rebuild the container and then you will be using the latest version and the UPLOAD_LIMIT parameter will be detected correctly.

Tags

Have Any Project in Mind?

If you want to do something in Drupal maybe you can hire me.

Either for consulting, development or maintenance of Drupal websites.