ERROR 1040 (08004): Too many connections
페이지 정보
작성자 HARULIFE 작성일 20-11-24 11:47 조회 9,441 댓글 0본문
종종 사이트에 접속자가 폭주하여 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
이럴땐 아래와 같이 해결하자.
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
댓글목록 0
등록된 댓글이 없습니다.