Import file size limit in PHPMyAdmin

后端 未结 27 2672
遇见更好的自我
遇见更好的自我 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:42

    Increase phpMyAdmin upload / import size

    By default you get a 2mb limit of upload / import size in phpmyadmin. That makes it odd and highly impossible to import larger files. You can increase the allowed upload size of phpmyadmin by editing your server’s php.ini configuration file. Usually in servers like CentOs it is located at /etc/php.ini.

    Step 1: Go to php.ini and find the following and change their values to something more higher than your database size. (In this example i have used 20mb).

    upload_max_filesize = 20M
    
    post_max_size = 20M
    

    Step2 : Restart your apache service for this new change to take effect. Usually the command to restart apache would be

    service httpd restart (CentOs) / service apache2 restart (ubuntu)
    

    You can also restart directly from their path like

    /etc/init.d/apache2 restart or /etc/init.d/httpd restart
    

    If you are in a shared hosting and do not have root access or access to your php.ini configuration file, then the other way is to create a .htaccess file in your application root and add the following line

    php_value upload_max_filesize 10M
    php_value post_max_size 10M
    

    If you were still not able to increase it, please send me an email for more detailed assistance.

提交回复
热议问题