How to Increase Import Size Limit in phpMyAdmin

前端 未结 19 1882
萌比男神i
萌比男神i 2020-12-02 04:58

Does anyone know if or how you can increase the import size limit in phpMyAdmin? Currently my server is limited to 50MB.

Please note that this is no

相关标签:
19条回答
  • 2020-12-02 05:22

    Change the file phpmyadmin.conf on c:/wamp64/alias/phpmyadmin.conf

    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

    It's very important you increase the time to 5000 or higher, Thus, the process will not stop when you are uploading a large file.

    That works for me.

    0 讨论(0)
  • 2020-12-02 05:23

    1:nano /etc/php5/apache2/php.ini
    you can find your php.ini location by uploading a file called phpinfo.php with the following contents<?php phpinfo();?> and access it by visiting yourdomain.com/phpinfo.php ,you will see the results

    2:change the desired value to upload_max_filesize and post_max_size such as : upload_max_filesize = 200M post_max_size = 300M then it will become 200M.

    3:restart your apache

    0 讨论(0)
  • 2020-12-02 05:27

    IF YOU ARE USING NGINX :

    1. cd /etc/php/<PHP_VERSION>/fpm example => cd /etc/php/7.2/fpm

    2. nano php.ini

      post_max_size = 1024M 
      upload_max_filesize = 1024M 
      max_execution_time = 3600 
      max_input_time = 3600 
      memory_limit = 1024M 
      
    3. after saving php.ini file , restart fpm using :

      systemctl restart php<PHP_VERSION>-fpm
      

    example => systemctl restart php7.2-fpm

    0 讨论(0)
  • 2020-12-02 05:28

    You can increase the limit from php.ini file. If you are using windows, you will the get php.ini file from C:\xampp\php directory.

    Now changes the following lines & set your limit

    post_max_size = 128M
    upload_max_filesize = 128M 
    max_execution_time = 2000
    max_input_time = 3000
    memory_limit = 256M
    
    0 讨论(0)
  • 2020-12-02 05:30

    If you are using WHM/Cpanel then in order to change that "Max: 50MiB" limit in the import section of phpmyadmin, you will have to change two values in WHM (Web Host Manager).

    Step 1) Go to Tweak settings, find the "cPanel PHP Max upload size" change it according to your needs. Save changes.

    Step 2) Go to Tweak settings, find the "cPanel PHP Max POST size" change it according to your needs. Save changes.

    Go back to your phpMyadmin. The value should have changed.

    enter image description here

    enter image description here

    enter image description here

    Full details here:

    http://crosstown.coolestguidesontheplanet.com/web-host/37-increase-upload-database-size-for-cpanel-and-phpmyadmin-server

    0 讨论(0)
  • 2020-12-02 05:30

    I increased the max file size by going to CPanel > Select PHP version > Switch to PHP Extensions and then scroll to the upload_max_filesize field (it will have a clickable link for the size - mine was set at 2MB) and I increased it to 256MB. Then click "Save".

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