Xampp - PHPMyAdmin upload large files?

后端 未结 5 1509
花落未央
花落未央 2021-02-07 03:59

I\'ve been trying to upload large data into my testing server, I\'ve modified a few files so far:

php.ini

memory_limit=2048M
php_value post_max_size 2048         


        
相关标签:
5条回答
  • 2021-02-07 04:39

    Source: How to Import Large Database Files in XAMPP

    Make changes in xampp\php\php.ini

    Look for the following:

    post_max_size       = 8M
    upload_max_filesize = 2M
    max_execution_time  = 30
    max_input_time      = 60
    memory_limit        = 8M
    

    then replace the lines with the following:

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

    Restart your XAMPP after making the changes, if you are still seeing the same error – try restarting your computer.

    0 讨论(0)
  • 2021-02-07 04:49

    Apply in php.ini

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

    Then restart wamp/lampp/xampp for the changes to take effect It will take long time. If you get following error "Script timeout passed if you want to finish import please resubmit same zip file and import will resume"

    Then in phpMyAdmin

    phpMyAdmin\libraries\config.default.php

    /**
     * maximum execution time in seconds (0 for no limit)
     *
     * @global integer $cfg['ExecTimeLimit']
     */
    $cfg['ExecTimeLimit'] = 0;
    

    Change it

    0 讨论(0)
  • 2021-02-07 04:58

    Alternatively instead of parsing up your SQL you could just do a mysql import via the shell:

    using this CMD: mysql -p -u username database_name < file.sql

    Read directions here how to turn on shell via Xampp here

    0 讨论(0)
  • 2021-02-07 05:03

    Try to import the MySQL data via commandline if possible.

    mysql -u user -p database < dump.sql
    
    0 讨论(0)
  • 2021-02-07 05:05

    Just change these two values.

    upload_max_filesize = 200M

    max_execution_time = 60000

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