Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve time out in phpmyadmin?

I want import huge (at least 300 mb) sql scripts via phpMyAdmin.

I've tried:

post_max_size = 750M upload_max_filesize = 750M max_execution_time = 300 max_input_time = 540 memory_limit = 1000M 

in my php.ini file, but I'm still getting timeout errors during importing.

like image 696
user1811486 Avatar asked May 23 '13 07:05

user1811486


People also ask

How do I increase PHPMyAdmin timeout?

If the import is to be done via cPanel provided PHPMyAdmin itself, then we need to increase the timeout. To do so, go to, WHM >> Tweak Settings >> cPanel PHP max execution time.

How can we increase maximum execution time of 60 seconds exceeded in xampp?

Your answer Look for : $cfg['ExecTimeLimit'] = 600; You can change '600' to any higher value, like '6000'. Maximum execution time in seconds is (0 for no limit). This will fix your error.

How do I import a large SQL file into PHPMyAdmin?

Ok you use PHPMyAdmin but sometimes the best way is through terminal: Connect to database: mysql -h localhost -u root -p (switch root and localhost for user and database location) Start import from dump: \. /path/to/your/file. sql.


1 Answers

If even after repeated upload you still get timeout error, pleasechange your settings in

\phpmyadmin\libraries\config.default.php

from $cfg['ExecTimeLimit'] = 300; to $cfg['ExecTimeLimit'] = 0; and restart. Now there is no execution time limit (trust we are talking about local server).

Source : Change Script time out in phpmyadmin

like image 120
jahajee.com Avatar answered Oct 02 '22 06:10

jahajee.com