Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error when importing sql file

when i m trying to load the .sql file into wamp using phpmyadmin

i m getting the fatal error as below

Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\apps\phpmyadmin4.5.1\libraries\plugins\import\ImportSql.class.php on line 220

like image 580
dell Avatar asked Jul 18 '13 10:07

dell


People also ask

How do I open a SQL file in Terminal?

To run SQL files from the terminal, you can use the source or the backslash and dot command ( \. ) Next, enter the password for your root user. The path /Users/nsebhastian/Desktop/test/main. sql above needs to be changed to the SQL file path on your computer.


2 Answers

Location: C:\xampp\phpmyadmin\config.inc.php

$cfg['ExecTimeLimit'] = 600;

In C:\xampp\php\php.ini Look for and Change max_execution_time

you already have execution 300 seconds, so go to that file and increase max_execution_time to to what ever you want of seconds.

like image 137
echo_Me Avatar answered Oct 16 '22 17:10

echo_Me


Add this line

$cfg['ExecTimeLimit'] = 6000;

to phpmyadmin/config.inc.php

And Change php.ini and my.ini

  • post_max_size = 750M
  • upload_max_filesize = 750M
  • max_execution_time = 5000
  • max_input_time = 5000
  • memory_limit = 1000M
  • max_allowed_packet = 200M (in my.ini)

OR

You may also go to xampp\phpMyAdmin\libraries\config.default.php,

and change this line to fix that error.

$cfg['ExecTimeLimit'] = 600;

like image 37
Naveen Kumar Alone Avatar answered Oct 16 '22 18:10

Naveen Kumar Alone