Import file size limit in PHPMyAdmin

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

    I found the problem and am post hete if anyone followed some blog post out there to create the sort of enviromment I have (win 7 host with ubuntu and zend server ce on virtual box).

    The thing is that MySQL is running on Lighttpd, not under Apache. So I had to change the php.ini file under that webserver as well which is in the path:

    /usr/local/zend/gui/lighttpd/etc/php-fcgi.ini

    In the end, you were right about the files, of course, but I was wrong on what file I had to change :)

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

    I think if your php version is above 5.5, let say it is 5.6, then your php.ini file is in following folder

    /etc/php/5.6/apache2
    

    so you have to apply your changes like post_max_size, upload_max_filesize and memory_limit there.

    Hope it will help you.

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

    do the following things

    • increase upload_max_file_size in php.ini
    • gzip your sql file

    and then import the file

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

    I am using Bitnami WAMP Stack 7.1.8-0 on my localhost. For me, the PHPMyAdmin maximum upload size limit was set to 80MiB as in the screenshot https://nimb.ws/fFxv7O. I managed to increase this size limit as explained below:

    1. Go to the folder where you have installed the Bitname WAMP Stack, for me, it is "E:\Bitnami WAMP Stack”
    2. Further inside, go to the path “apps\phpmyadmin\conf"
    3. Open the file httpd-app.conf in your favorite text editor
    4. Find the following two lines:
    php_value upload_max_filesize 80M    
    php_value post_max_size 80M
    

    (The 80M value at the end of these lines may be different for you)

    1. Go ahead and change these values at the end of these two lines (80M in this case) according to your needs.

    2. Restart WAMP server.

    Now go to PHPMyAdmin and see, your upload size limit should be updated to whatever you set it to. That is it.

    0 讨论(0)
  • 2020-11-27 09:41
     php_value upload_max_filesize 100M
        php_value post_max_size 100M
    

    increse that size in php.ini then run command

    sudo service apache2 restart
    sudo service mysql restart
    

    in xammp

    restart all service
    
    0 讨论(0)
  • 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.

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