
[mysql] too many connections
·
DB/mysql
mysql 연결할 수 있는 최대 클라이언트 갯수 확인 - show variables like '%max_connect%'; mysql 지속시간 확인 - show variables like 'wait_timeout'; mysql 현재 상태 확인 - show status like '%CONNECT%'; set global interactive_timeout = 3600; set global wait_timeout = 3600; set global max_connections=300; max_connection 늘리기 보단 wait_timeout 의 커넥션 연결 시간을 줄이는게 좀더 좋습니다.