We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,868 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpmyadmin\li

I have data.sql file and there is 151262 insert statement in SQL file. but while i try to IMPORT it in MYSQL database this give me following error.


Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpmyadmin\libraries\import\sql.php on line 111


Pls give some solution for this Problem.


-keval

3
Contributors
6
Replies
1 Day
Discussion Span
2 Years Ago
Last Updated
7
Views
keval_hack
Junior Poster in Training
Banned
66 posts since Jan 2010
Reputation Points: 8
Solved Threads: 4
Skill Endorsements: 0

I think this is the PHP timeout of phpMyAdmin. So you can either change the php.ini and increase the timeout, or import the file directly into MySQL throught the command line.

pritaeas
Posting Prodigy
Moderator
9,267 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

But i don't know how to change php.ini pls can u tell me stem for that.

keval_hack
Junior Poster in Training
Banned
66 posts since Jan 2010
Reputation Points: 8
Solved Threads: 4
Skill Endorsements: 0

Location: C:\xampp\php\php.ini
Change max_execution_time

I still recommend the other method:
http://www.cyberciti.biz/faq/import-mysql-dumpfile-sql-datafile-into-my-database/

pritaeas
Posting Prodigy
Moderator
9,267 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

Hello,

151262 rows are too much, they can hardly be inserted by means of insert statements and php because of too much time consuming. Instead, bulk insert should be done with MySQL LOAD DATA INFILE.

-- tesu

tesuji
Master Poster
721 posts since Apr 2008
Reputation Points: 158
Solved Threads: 98
Skill Endorsements: 0

@tesuji: Does LOAD DATA INFILE support sql dumps too ?

pritaeas
Posting Prodigy
Moderator
9,267 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

I don't believe that files generated for processing with fast LOAD DATA INFILE to read them back into tables be compatible with mysqldump. However, mysqldump is able to generate complete insert-statements too. But I would never mix it.

There are many options one can set for speeding-up bulk-insert, for example delayed-insert (most important), disable-keys, no-locks.

-- tesu

tesuji
Master Poster
721 posts since Apr 2008
Reputation Points: 158
Solved Threads: 98
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0970 seconds using 2.66MB