小编Ess*_*xPN的帖子

PHP:导入.SQL数据文件时的最长执行时间

我试图在XAMPP中使用phpMyAdmin导入一个大的.sql数据文件.然而,这需要花费很多时间,而且我一直在努力:

致命错误:第285行的C:\ xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php超过了300秒的最长执行时间

该文件大约有120万行.

该文件大约30MB,所以它不是那么大.我真的不明白为什么这么长时间.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time=30000

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI …
Run Code Online (Sandbox Code Playgroud)

php mysql sql xampp phpmyadmin

33
推荐指数
6
解决办法
11万
查看次数

标签 统计

mysql ×1

php ×1

phpmyadmin ×1

sql ×1

xampp ×1