When I try to execute (some) queries in phpMyadmin I get this error
Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\phpmyadmin\libraries\dbi\mysql.dbi.lib.php on line 140
because I have a very large table (over 9 millions records)
I have edited the file C:\xampp\php\php.ini
and changed the value of "max execution time" from 60 to 1000 then restarts the PHP and still have the same error.
Any solution?
Probabily you are using XMAPP as service, to restart XMAPP properly, you have to open XMAPP control panel un-check both "Svc" mdodules against Apache and MySQL. Then click on exit, now restart XMAPP and you are done.
Your change should work. However, there are potentially few php.ini configuration files with the 'xampp' stack. Try to identify whether or not there's an 'apache' specific php.ini. One potential location is:
C:\xampp\apache\bin\php.ini
ini_set('max_execution_time', 0);
or create file name calledphp.ini
and enter the first linemax_execution_time=0
then save it and put the file in your root folder of your application.That's it. Good luck.
I faced the same problem while executing a curl. I got it right when I changed the following in the
php.ini
file:and also
Probably your problem should be solved by making above two changes and restarting the apache server.
Even after changing the above the problem persists and if you think it's because of some database operation using mysql you can try changing this also:
Changing
php.ini
for a web application requires restarting Apache.You should verify that the change took place by running a PHP script that executes the function
phpinfo()
. The output of that function will tell you a lot of PHP parameters, including the timeout value.You might also have changed a copy of
php.ini
that is not the same file used by Apache.I have the same error, please go to
Look for :
$cfg['ExecTimeLimit'] = 600;
You can change '600' to any higher value, like '6000'.
Maximum execution time in seconds is (0 for no limit).
This will fix your error.