Import file size limit in PHPMyAdmin

后端 未结 27 2465
遇见更好的自我
遇见更好的自我 2020-11-27 08:46

I have changed all the php.ini parameters I know: upload_max_filesize, post_max_size.

Why am I still seeing 2MB?

Im using Zend Serv

相关标签:
27条回答
  • 2020-11-27 09:25

    Just change your php.ini(xampp/php/php.ini) file, it worked for me!

    max_execution_time = 5000
    max_input_time = 5000
    memory_limit = 1000M
    post_max_size = 750M
    upload_max_filesize = 750M
    

    And, don't forget to restart Apache Module from XAMPP Control Panel.

    0 讨论(0)
  • 2020-11-27 09:25

    I found that increasing the upload and post limit in php.ini did not affect the limit in phpmyadmin. This is because my server has a separate setting for cpanel upload limit. If you have access to WHM, you probably have this.

    To adjust:

    • login to your WHM panel: this is usually located at {your server ip}/whm and you will need your root login details here. If you don't have those, request them from your host.
    • once logged in, in the top left search bar, search for "tweak settings"
    • On the tweak setting pages, search for "cPanel PHP max upload size"
    • Adjust the number and save

    No need to restart apache or anything, changes are instant. This process increased the value of max upload file size in phpmyadmin. You can check this by going to phpmyadmin and selecting your database, then clicking "import" at the top. Beside the file selector you will see the upload limit. My server default was 100.

    0 讨论(0)
  • 2020-11-27 09:25

    The first things to check (or ask your host provider to check) are the values of max_execution_time, upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP.

    Please note that post_max_size needs to be larger than upload_max_filesize.

    0 讨论(0)
  • 2020-11-27 09:26

    You probably didn't restart your server ;)

    Or you modified the wrong php.ini.

    Or you actually managed to do both ^^

    0 讨论(0)
  • 2020-11-27 09:27

    Open this file

    edit these parameters:

    • memory_limit =128M
    • post_max_size = 64M
    • upload_max_filesize = 64M
    0 讨论(0)
  • 2020-11-27 09:27

    I had the same problem. My Solution: go to /etc/phpmyadmin and edit apache.conf in the <Directory>[...]</Directory> section you can add

    php_value upload_max_filesize 10M
    php_value post_max_size 10M
    

    Solved the problem for me!

    0 讨论(0)
提交回复
热议问题