If you are importing your database using Phpmyadmin, then there’s a configuration file for it. The default/example config file is found here:
\phpmyadmin\libraries\config.default.php
Don’t edit this file as it may get overwritten in future updates. Instead look for an existing file here:
\phpmyadmin\config.inc.php
…and if it does not exist, create it.
Open this configuration file in any editor and change $cfg['ExecTimeLimit'] = 300;
to $cfg['ExecTimeLimit'] = 0;
(or if it does not exist, add it)
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