2014-01-05 5 views
1

phpmyadmin에서 가져올 수있는 거대한 CSV 파일 (Innodb)이 있습니다. 첫 번째 파일 (거의 20MB)의 경우 작동했습니다. 내가 phpMyAdmin을에 가져올하려고 할 때 다른 하나 (거의 50메가바이트)에 대한 , 나는이 오류가 발생했습니다 : 나는 Easyphp을 사용하고최대 실행 시간 오류

Fatal error: Maximum execution time of 300 seconds exceeded 

의 my.ini :

bind-address = 127.0.0.1 
socket  = "${path}/mysql/mysql.sock" 
skip-external-locking 
key_buffer_size = 16M 
max_allowed_packet = 512M 
table_open_cache = 128 
sort_buffer_size = 512K 
net_buffer_length = 8K 
read_buffer_size = 512K 
read_rnd_buffer_size = 512K 
myisam_sort_buffer_size = 8M 


[wampmysqld] 
port  = 3306 
socket  = /tmp/mysql.sock 
key_buffer = 384M 
max_allowed_packet = 100M 
table_cache = 4096 
sort_buffer_size = 2M 
net_buffer_length = 2M 
read_buffer_size = 2M 
read_rnd_buffer_size = 64M 
myisam_sort_buffer_size = 64M 
basedir=c:/wamp/bin/mysql/mysql5.1.36 
log-error=c:/wamp/logs/mysql.log 
datadir=c:/wamp/bin/mysql/mysql5.1.36/data 
thread_cache_size = 8 
query_cache_size = 32M 

innodb_buffer_pool_size = 384M 
innodb_additional_mem_pool_size = 20M 
# Set .._log_file_size to 25 % of buffer pool size 
innodb_log_file_size = 10M 
innodb_log_buffer_size = 64M 
innodb_flush_log_at_trx_commit = 1 
innodb_lock_wait_timeout = 3600 

wait_timeout = 28800 

[mysqldump] 
quick 
max_allowed_packet = 100M 

[isamchk] 
key_buffer = 20M 
sort_buffer_size = 20M 
read_buffer = 2M 
write_buffer = 2M 

php.ini

;;;;;;;;;;;;;;;;;;; 
; 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 = 3600 

; 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 = 5000 

; 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 = 2000M 

어떻게 해결할 수 있습니까? 감사합니다.

+0

기본 mysql 명령 줄 도구를 가져 오는 방법은 어떻습니까? – deviantfan

+0

왜 안 되니? 내가 어떻게 해 ? – user3162341

+0

PHP.ini 설정이 제대로 적용되지 않은 것으로 보입니다. –

답변

1

Quickfix : CSV를 더 작은 부분으로 나누십시오.

+0

CSV를 나누는 소프트웨어를 알고 있습니까? – user3162341

+0

적당한 텍스트 편집기를 사용하십시오. http://notepad-plus-plus.org/는 Windows에서 잘 작동합니다. – gnuheidix