Script timeout passed, if you want to finish import, please resubmit the same file and import will resume

后端 未结 8 1552
既然无缘
既然无缘 2021-01-30 11:00

I have a database Un-zipped size 50mb zipped size 7mb So when I try to import the database zipped(7mb) after few minutes it is throwi

相关标签:
8条回答
  • 2021-01-30 11:20

    If you are importing your database using Phpmyadmin, then there's a configuration file for it:

    \phpmyadmin\libraries\config.default.php
    

    Open this configuration file in any editor and change $cfg['ExecTimeLimit'] = 300; to $cfg['ExecTimeLimit'] = 0;

    Restart your localhost, now you don't have any time limit.

    Or you can use MySQL command line to import your unzipped SQL file directly, something like below:

    mysql -u username -p database_name < my_unzipped_import_file.sql
    
    0 讨论(0)
  • 2021-01-30 11:25

    Xampp in Ubuntu

    If you are importing your database using PhpMyAdmin, then there's a configuration file for it:

    /opt/lampp/phpmyadmin/libraries/config.default.php

    Open this configuration file in any editor and change $cfg['ExecTimeLimit'] = 300; to $cfg['ExecTimeLimit'] = 0;

    Restart your localhost, now you don't have any time limit.

    0 讨论(0)
  • 2021-01-30 11:27

    WampServer Version 3 - Windows

    Open config.default.php

    You can find it here

    C:\wamp\apps\phpmyadmin\libraries\config.default.php
    

    Search for ExecTimeLimit

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

    increase the value of $cfg['ExecTimeLimit'] or set it to 0 for no limit

    0 讨论(0)
  • 2021-01-30 11:28

    Instead of XAMPP you may use LAMP(Linux Apache MySQL PHP) mostly. Using LAMP you may also face this problem.

    In my case(using Ubuntu 15.10), I had configured/set post_max_size, upload_max_filesize, max_execution_time, max_input_time, memory_limit following my needs using php.ini file which is located at /etc/php5/apache2/php.ini

    But still I was faced this problem. Then solved the problem using config.default.php file, where you can find out like this line below:

    $cfg['ExecTimeLimit'] = 300; Make it to

    $cfg['ExecTimeLimit'] = 0;

    Note: You can locate config.default.php file via your terminal(Ctrl+Alt+T) by this commandlocate config.default.php possible path is /usr/share/phpmyadmin/libraries/config.default.php

    0 讨论(0)
  • 2021-01-30 11:36

    for lamp ubuntu :- first go to config.default.php location you can find by execute

    locate config.default.php
    

    in my case its locate at /usr/share/phpmyadmin/libraries

    cd /usr/share/phpmyadmin/libraries
    

    now edit config.default.php file in my case i use gedit you can install by

    sudo apt install gedit
    
    sudo gedit config.default.php
    

    no search for ExecTimeLimit in file change $cfg['ExecTimeLimit'] = 300; to

    $cfg['ExecTimeLimit'] = 0; 
    

    save and close it, restart server by

    sudo service apache2 restart
    
    0 讨论(0)
  • 2021-01-30 11:37

    in

    config.inc.php
    

    add this

    $cfg['ExecTimeLimit'] = 0;
    

    for me is work

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