The Personal Weblog of Akshay Jain
So, I was importing a large database via PHPmyadmin to my server and as expected I got the irritating message
‘Maximum execution time of 300 seconds exceeded’
At first this seems like a Apache or a PHP timeout error, so I opened my httpd.config and php.ini files and increased the values for script timeouts, but unfortunately the error still continued.
The problem arises because PHPMYADMIN overrides the settings of the server and to resolve this error the configuration file to PhpMyAdmin needs to be edited.
So, look into
/var/www/html/phpMyAdmin-2.6.1/config.inc.php (for linux servers )
or
C:\wamp\apps\phpmyadmin2.11.6\config.inc.php (for windows servers)
NOTE: The paths can vary slightly depending on your configuration.
When you have opened that config file, there is a variable called
$cfg['ExecTimeLimit']
Just change this variable to 0 (for unlimited) or to a sufficiently large number.
Enjoy!
I am Akshay Jain a student in Economics and a web enthusiast. Most of my readers would be knowing me by my pseudonym champ_rock/champrock. This is my blog and I know I wont be keeping this updated. For contacting me, please use the contact form!
Please subscribe to the RSS feeds in order to get the latest updates on my blog!
airtel
apple
apple itunes
ascii
benchmark
broadband
browser
confidence motion
converter
ebaumsworld
firefox
fun
galwaysidle
Google
google campus ambassador
google gadget
google trends
google trends hacked
google trends spam
gtalk
hacked
hijack
how to poop at work
idle
iim
iim-i
iim pgp
iim student website
image to ascii
indian government
ipod
itunes
latest browsers
opera
opera functions
politics
ram
ram usage
redirect
swastika
taskmanager
trends hacked
typo
virus
ǝlƃooƃ noʎ ʞɔnɟ Broadband (India) (2)
Code Snippets (6)
Economics (1)
General (18)
Google (3)
Indian Politics (1)
Jainism (1)
Kindle Touch (1)
Latest Buzz (6)
New Scripts (1)
opera (2)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Designo
November 13th, 2008 at 1:36 pm
Thanx a lot!
You were the only one providing a “straight” solution”
pkiff
November 28th, 2008 at 5:22 pm
FYI:
http://drupal.org/node/279344#comment-1130077
Maximus
January 20th, 2009 at 2:52 pm
Definitely, loads of other sites have complicated solutions and the solution was a simple one.
Thanks
Props
betweenbrain
January 20th, 2009 at 8:08 pm
Whereas many other solutions fail, this one works. It’s a simple and effective solution. Great for local development servers. Thanks!
S.K
February 21st, 2009 at 10:23 am
Thanks, Man!
Kickass solution! I have been groping for a long while before I stumbled on your blog.
S.K (from Chennai)
Thomas
March 31st, 2009 at 4:01 pm
At least some efficient information about this n@sty*#! problem
Thanks for all
Gepard
April 13th, 2009 at 3:34 pm
THANX!!!!
Jacek
July 31st, 2009 at 5:23 pm
Had same problem, WAMP Server overwrites maximum execution time limit of the php.ini configuration file.
This change fixed my problem.
Thanks You.
Claire
August 5th, 2009 at 1:24 pm
Thanks a lot
Jhonald
March 18th, 2010 at 8:12 pm
Thanks my friend, excelent solution.
Pinaz
May 4th, 2010 at 3:48 pm
I made the change as suggested, i am using XAMPP (Localhost) but still i am getting the error
jarcoder
June 11th, 2010 at 2:51 pm
Thanks from Kazakhstan
MySql/Phpmyadmin 300 Seconds time out|file size|other issues « Anthony's bin
July 27th, 2010 at 7:36 am
[...] god, search through the web, saw This POST and it’s also a matter of setting in [...]
Anonymous
September 4th, 2010 at 1:13 am
Thank you!
depthman
September 25th, 2010 at 1:04 pm
thinks,
but
i can not find the file(config.inc.php) under C:\xampp\mysql\
please hlep me,waiting your emall
depthman
September 25th, 2010 at 1:05 pm
i find it! thinks!
depthman
September 25th, 2010 at 1:09 pm
i find config.inc.php in C:\xampp\phpMyAdmin
but there is not a variable called
$cfg['ExecTimeLimit']
sagherd
October 21st, 2010 at 3:00 pm
There is no such variable in phpMyAdmin 3.1.3 – Do you have any idea of how I could overcome the same problem
sagherd
October 21st, 2010 at 3:17 pm
Ok – Problem sorted – I simply added the variable $cfg['ExecTimeLimit'] = 0 to the config.inc.php file – Whow – thanks for this help
Dilshad
January 6th, 2011 at 1:56 pm
nice blog thanks for your information
Pim
January 10th, 2011 at 12:20 pm
Yep.. Adding
$cfg['ExecTimeLimit'] = 0;
to
C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php
works!
jatinder singh
March 4th, 2011 at 7:53 pm
Well, thanks a lot.
i use xampp and could not found file that you specified but i searched phpmyadmin folder for variable mentioned, it was in config.default.php and i changed it to 0.
good done akshay!!!
roberto
July 2nd, 2011 at 10:02 am
thanks a lot, dude!
inventory shrinkage
September 24th, 2011 at 3:51 am
inventory shrinkage…
[...]PhpMyAdmin: Maximum execution time of 300 seconds exceeded – Fix – Akshay Jain[...]…
bütün gazeteler
November 25th, 2011 at 3:47 am
thanks for sharing this great post.
Abhishek
December 11th, 2011 at 2:30 pm
Thanks for such excellent code
ajay
December 20th, 2011 at 12:30 am
Thank you soo much!!
works like a charm.
sreepal
April 9th, 2012 at 6:12 pm
Thanks, it’s helpful.