PHP: maximale Ausführungszeit beim Importieren der .SQL-Datendatei

Ich versuche zu importieren, eine große .sql-Datei mit phpMyAdmin in XAMPP. Aber dies nimmt viel Zeit und ich erhalte:

Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php auf der Linie 285

Und die Datei ist etwa 1,2 Millionen Zeilen lang.

Die Datei ist über 30 MB groß, also es ist nicht so groß. Ich weiß nicht wirklich verstehen, warum es so lange gedauert hat.

;;;;;;;;;;;;;;;;;;;
; 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
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time=60

; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit=200M

Das ist die Konfigurationsdatei für php.ini in xampp, aus irgendeinem Grund bekomme ich noch

Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php auf der Linie 285.

Kommentar zu dem Problem
Erhöhen Sie das Zeitlimit. Überprüfen Sie Ihre server-Konfiguration. 300 ist schon ziemlich hoch. Standardwert ist 30. Kommentarautor: Halcyon
Ja, aber mit 300 kann ich nur wieder auf der Linie 285 von den 1,2 Millionen Euro. Obwohl die Datei ist über 30 MB, die ich nicht wirklich verstehen, warum es so lange gedauert hat. Kommentarautor: EssexPN
Das ist nicht die Nummer der Zeile der sql-Datei, aber deine php. Kommentarautor: mark.sagikazar
Skripts von der Kommandozeile statt über einen web-service, nicht über eine maximale execution-time-limit standardmäßig. Ein Skript, das die Verarbeitung von Millionen Datenpunkte nicht wirklich ausgeführt werden, die im Kontext eines web-server, so würde ich dringend raten, Sie umgestalten, Ihr Skript von der Kommandozeile statt Kommentarautor: GordonM

InformationsquelleAutor der Frage EssexPN | 2014-04-02

Schreibe einen Kommentar