오류해결 | ERROR 1040 (08004): Too many connections | |||||
---|---|---|---|---|---|
작성자 | 작성일 | 18-03-08 22:07 | |||
종종 사이트에 접속자가 폭주하여 connection 에러가 발생하는 경우가 생긴다. 이럴땐 아래와 같이 해결하자. 1) 현재 mysql에 설정된 max_connections 확인 # mysqladmin -u root -p variables | grep max_connections Enter password: | max_connections | 100 2) max_connections 를 1000으로 늘리기 # vi /etc/my.cnf ---------------------------------------------------- . . [mysqld] max_connections = 1000 . . ---------------------------------------------------- # /etc/init.d/mysqld restart 3) 적용된 max_connections 확인 # mysqladmin -u root -p variables | grep max_connections Enter password: | max_connections | 1000
|
|||||
|
댓글목록
등록된 댓글이 없습니다.