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.