Transferring contacts from one CiviCRM installation to another
Please increase your max_execution_time 

if you are using Xamp look for following file and change 

xampp\phpMyAdmin\libraries for config.default.php

change 
$cfg['ExecTimeLimit'] = 300; to 0 - for unlimited

this should fix the issue