Skip to content
Advertisement

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

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 throwing this error:

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

I have resubmitted it but still not importing total data.

I am working in local and these are my php.ini configurations:

JavaScript

how can I let the system to take its own time for import.?

Advertisement

Answer

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

JavaScript

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:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement