phpMyAdmin에서 DB를 임포트할 때 '413 Request Entity Too Large' 오류가 발생하는 경우

phpMyAdmin에서 DB를 임포트할 때 '413 Request Entity Too Large' 오류가 발생하는 경우 해결 방법

카페24에서 phpMyAdmin을 통해 워드프레스 DB 파일을 업로드할 때 '413 Request Entity Too Large' 오류가 발생하여 해결하느라 고생했습니다.

이 github 문서를 보면 다음과 같이 구성 파일의 설정을 변경하면 해결된다고 합니다.

php-suctom.ini 파일에서:

; Maximum size of POST data that PHP will accept.
post_max_size = 70M

; Maximum allowed size for uploaded files.
upload_max_filesize = 70M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60

nginx.conf 파일에서:

# Max size of a body to allow. This affects uploads, but can be overwritten at
# the individual site level
client_max_body_size 70M;

카페24의 경우 DB를 21MB 정도 크기까지 업로드할 수 있습니다. 저는 파일 업로드를 동시에 진행하는 상황이어서 PHP 설정값을 조정하지 않고 DB 크기를 4MB 크기로 잘라서 업로드했습니다.

DB 파일이 너무 크지만 SQL 파일을 자를 수 없는 경우 테이블별로 임포트해볼 수 있습니다.

댓글 남기기

프리미엄 테마 그래픽 동영상 템플릿 무료 다운로드