veeraa2003 Posted January 18, 2007 Share Posted January 18, 2007 Hi every body ...Its me veeraa , I'm beginner in using LAMPP, I got the error while try to import a big SQL (184 MB) in to SQLMyAdmin , Fatal error: Maximum execution time of 300 seconds exceeded I try to change the value of [color=red]memory_limit = 184M[/color] and [color=red]max_execution_time = 0[/color] in Php.ini file and restart the lampp. But still got the problem,Now using the option of partial import, its consuming more time .can any one help with other option..I think i explained my problem upto my level . If any mistake on this please forgive me . Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/ Share on other sites More sharing options...
trq Posted January 18, 2007 Share Posted January 18, 2007 Import this through the terminal mysql program. Why are you using php to do this? Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-163602 Share on other sites More sharing options...
kevinkorb Posted January 19, 2007 Share Posted January 19, 2007 At the beginning of your script you can add.[code=php:0]ini_set('MAX_EXECUTION_TIME', -1);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-164264 Share on other sites More sharing options...
veeraa2003 Posted January 19, 2007 Author Share Posted January 19, 2007 Hi Thanks for your kind replies . I can't overcome the above problem.where I should put this code ;ini_set('MAX_EXECUTION_TIME', -1); My database is in a textfile with the extension .sql Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-164306 Share on other sites More sharing options...
kevinkorb Posted January 21, 2007 Share Posted January 21, 2007 At the very top of your php file. Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-165739 Share on other sites More sharing options...
veeraa2003 Posted January 22, 2007 Author Share Posted January 22, 2007 [quote author=kevinkorb link=topic=122952.msg509906#msg509906 date=1169404857]At the very top of your php file.[/quote]That nice ...Now no problem on my import. Thanks for your reply ....................... Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-166216 Share on other sites More sharing options...
wattaman Posted September 7, 2010 Share Posted September 7, 2010 There is a php script I've used one time, one file only, that can import big databases no matter if the time limitations of the php; the script import tables in parts and it refreshes the page after importing one part, then loads the next part (tables, fields etc). Unfortunately, I've forgot its name, by try searching it on the net using its description as search term... maybe other members can post its name here. Quote Link to comment https://forums.phpfreaks.com/topic/34708-getting-fatal-error-maximum-execution-time-of-300-seconds-exceeded/#findComment-1108101 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.