Fatal error: Maximum execution time of 300 seconds exceeded
If you are using WAMP Go to :
Increase the max_execution_time
in php.ini
then go to
C:\wamp\apps\phpmyadmin3.4.10.1\libraries
(change path according to your installation)
open config.default.php
and change value for $cfg['ExecTimeLimit']
to 0:
$cfg['ExecTimeLimit'] = 0;
This will resolve the issue for PhpMyAdmin imports.
At the beginning of your script you can add.
ini_set('MAX_EXECUTION_TIME', '-1');
Xampp Users
- Go to
xampp\phpMyAdmin\
- Open config.inc.php
- Search for
$cfg['ExecTimeLimit'] = 300;
- Set a larger value or change to 0 for unlimited
- If not found add
$cfg['ExecTimeLimit'] = 900;
(or 0 for unlimited) - Save the file and restart the server
Important: setting the execution time limit to unlimited is not recommended.