Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why phpMyAdmin file size limit is not changing?

Tags:

php

phpmyadmin

I'm using WAMP Server and here trying to upload a sql file with the file size of 131 MB.

The current limit is showing 128MiB on phpMyAdmin upload screen.

But my php.ini configuration was:

upload_max_filesize = 2M
post_max_size = 2M

That was a bit awkward to me. But then, I changed them to:

upload_max_filesize = 256M
post_max_size = 256M

And still it's showing (Max: 128MiB) limit.

The file I'm editing is in "C:\wamp\bin\apache\apache2.4.9\bin\" directory and I did restarted the server after changing those values.

I found a workaround of this issue by typing mysql commands in cmd. But my question is, why it's not reflecting my changes here?

like image 515
aniskhan001 Avatar asked Jun 12 '15 11:06

aniskhan001


Video Answer


3 Answers

I have finally found out how to do that. PhpMyAdmin has its own settings here

C:\wamp64\alias\phpmyadmin.conf

  1. now you just change
        php_admin_value upload_max_filesize 512M
        php_admin_value post_max_size 512M
        php_admin_value max_execution_time 360
        php_admin_value max_input_time 360 
  2. restart All services in Wamp
  3. enjoy your day
like image 65
Novasol Avatar answered Oct 18 '22 02:10

Novasol


With WAMP, you need to modify the variable upload_max_filesize in the php.ini files of PHP and Apache, which are located under :

  • C:\wamp\bin\apache\apache2.4.9\bin\
  • C:\wamp\bin\php\phpX.X.X
like image 40
systemasis Avatar answered Oct 18 '22 00:10

systemasis


You have to change the value in this file:

wamp\alias\phpmyadmin.conf

Why they buried this configuration here among also having seperate php.ini files is a mystery to me.

like image 1
kdion4891 Avatar answered Oct 18 '22 00:10

kdion4891