ERROR 1040 (08004): Too many connections
페이지 정보

본문
종종 사이트에 접속자가 폭주하여 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
- 이전글innodb 확인방법 20.11.24
- 다음글mysql 디비 계정생성및 권한설정 20.11.24
댓글목록
등록된 댓글이 없습니다.