简体   繁体   中英

How to import large sql files that would take more than 300s on phpMyAdmin?

I was trying to sql file - a big one (989MB) but I got this:

´Fatal error: Maximum execution time of 300 seconds exceeded in C:\\xampp\\phpMyAdmin\\libraries\\dbi\\DBIMysqli.class.php on line 261´

I even read the line 261

return mysqli_query($link, $query, $method);

I read the documentation - https://dev.mysql.com/doc/search/?d=12&p=1&q=Fatal+error%3A+Maximum+execution+time+of+300+seconds+exceeded+in+C%3A%5Cxampp%5CphpMyAdmin%5Clibraries%5Cdbi%5CDBIMysqli.class.php+on+line+261 - but I wasn't able to find anything. That said, I'd need phpAdmin runs for 1 hour or even more

Is it possible to set that for infinite (no limit time)?

Edit - I got this > Fatal error: Maximum execution time of 300 seconds exceeded in C:\\xampp\\phpMyAdmin\\libraries\\import.lib.php on line 396. I had set to 10000 and unchecked "Allow the interruption of an import in case the script detects it is close to the PHP timeout limit. "

phpMyAdmin的配置文件中,有一个变量$cfg['ExecTimeLimit']设置最长执行时间(以秒为单位)。

The setting is done in phpMyAdmin\\libraries\\config.default.php as

$cfg['ExecTimeLimit'] = 300;

That being said, this file should not be updated, use phpMyAdmin\\config.inc.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM