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?
For Xampp version on Windows
Add this line to xampp\phpmyadmin\config.inc.php
And Change xampp\php\php.ini to
And change xampp\mysql\bin\my.ini
Go to
xampp/php/php.ini
Find this line:
And change its value to any number you want. Restart Apache.
Well for Wamp User,
Go to:
wamp\apps\phpmyadmin3.3.9\libraries
Under line 536,
locate $cfg['ExecTimeLimit'] = 0;
and change the value from 0 to 6000. e.g
To
Restart wamp server and phew.
It works like magic !
'ZERO' for unlimited time.
C:\Apache24\htdocs\phpmyadmin\libraries\Config.class.php
You could also import the large file right from MySQL as query or a PHP query.
500,000 rows just took me 18 seconds to import on local server, using this method.
(create table first) - then:
What worked for me on WAMP was modifying file: \Wamp64\alias\phpmyadmin.conf, lines:
I did not have to change the library file.
In php.ini you must check mysql.connect_timeout either. That's responsible for socket closing and returning the Fatal. So, for example, change it to:
That time will be always counted in seconds, so in my example you have 1 hour.