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

后端 未结 8 1551
既然无缘
既然无缘 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
    

提交回复
热议问题