Import file size limit in PHPMyAdmin

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

    You could just use MySQL administrator app or MySQL workbench. Lightweight apps and you can export or import your entire server however the size. Am late to the party here but I hope it helps someone.

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

    How to import huge amount of Data in Xampp

    It’s the best solution to open new, clean database, and import the file in phpMyAdmin. Choose file from local folder and leave all settings as is. That should be it.

    But if your file exceeded file size of 2MB (that is default value in xampp installation) than you need to tweak some out. Basically we will just increase the maximum upload file size.

    Open your xampp install folder and go to php folder. With some text editor file (notepad++) open the file called php.ini (by type windows describe it as configuration settings) and edit the line (cca. 770, or press ctrl+f in notepad++ to find it):

    post_max_size = 2M

    instead 2M, put wanted maximum file size (16MB for example but not higher than 128M),

    after that go to this line: max_execution_time = 30 instead 30, increase execution time that’s in seconds (90 for example), also you need to change this line:

    max_input_time = 60
    

    instead 60, increase input time in seconds (120 for example) and top of all you have to change this line:

    upload_max_filesize = 2M
    

    instead of 2M, increase to 16M for example. Save the file, restart apache and mysql in xampp and try to upload again, if you follow correctly you should be able to import files through 16MB (example)

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

    In my case, I also had to add the line "FcgidMaxRequestLen 1073741824" (without the quotes) in /etc/apache2/mods-available/fcgid.conf. It's documented here http://forum.ispsystem.com/en/showthread.php?p=6611 . Since mod_fcgid 2.3.6, they changed the default for FcgidMaxRequestLen from 1GB to 128K (see https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk/CHANGES-FCGID )

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

    Check your all 3:

    • upload_max_filesize
    • memory_limit
    • post_max_size

    in the php.ini configuration file

    * for those, who are using wamp @windows, you can follow these steps: *

    Also it can be adapted to any phpmyadmin installation.

    Find your config.inc.php file for PhpMyAdmin configuration (for wamp it's here: C:\wamp\apps\phpmyadminVERSION\config.inc.php

    add this line at the end of the file BEFORE "?>":

    $cfg['UploadDir'] = 'C:\wamp\sql';
    

    save

    create folder at

    C:\wamp\sql 
    

    copy your huge sql file there.

    Restart server.

    Go to your phpmyadmin import tab and you'll see a list of files uploaded to c:\wamp\sql folder.

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

    Find the file called: php.ini on your server and follow below steps

    With apache2 and php5 installed you need to make three changes in the php.ini file. First open the file for editing, e.g.:

    sudo gedit /etc/php5/apache2/php.ini

    OR

    sudo gedit /etc/php/7.0/apache2/php.ini

    Next, search for the post_max_size entry, and enter a larger number than the size of your database (15M in this case), for example:

    post_max_size = 25M
    

    Next edit the entry for memory_limit and give it a larger value than the one given to post_max_size.

    Then ensure the value of upload_max_filesize is smaller than post_max_size.

    The order from biggest to smallest should be:

        memory_limit
        post_max_size
        upload_max_filesize
    

    After saving the file, restart apache (e.g. sudo /etc/init.d/apache2 restart) and you are set.

    Don't forget to Restart Apache Services for changes to be applied.

    For further details, click here.

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

    C:\xampp\php\php.ini in my case or it could be C:\php\php.ini if the Apache / PHP / MySQL are stand alone

    upload_max_filesize = 2M by default

    so it can be changed as desired. And in my case upload_max_filesize = 20M

    post_max_size = 8M by default it should be changed to post_max_size = 20M as well

    memory_limit=128M is by default and it is not necessary to change to increase the max 2056kb or 2mb .sql file upload limit. But it only means that a script can consume up to 128 memory when you run apache and sql server , and if you change memory_limit=128M to higher and run any malfunctioned script then it may cause you trouble. So its up to you.

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