로컬에서 테스트 하면 정상인데 실서버를 반영하면 꼭
DB ERROR 2006 : MySQL server has gone away
에러가 발생합니다.
구글을 검색해보면 max_allowed_packet= 수치를 올리라고 나옵니다.
max_allowed_packet=256M 까지 올려도 소용이 없습니다.
my.cnf 파일도
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
이거 전부입니다.
server.cnf 설정은
# this is only for the mysqld standalone daemon
[mysqld]
max_allowed_packet=256M
character-set-server=utf8mb4
collation-server=utf8mb4_bin
lower_case_table_names=1
이렇게 되어 있습니다.
혹시 원인 알 수 있을까요?