오류해결 | 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 

 

댓글목록

등록된 댓글이 없습니다.

총 게시물 18 개, 페이지 1 RSS
제목 작성자
오류해결 Strict Standards: Assigning the return value of new by reference is deprecated in /home/goodbook/pub… H
오류해결 array_keys() [function.array-keys]: The first argument should be an array in H
오류해결 phpize 실행 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF enviro… H
오류해결 [phpmyadmin]mysqli 확장모듈을 불러올 수 없습니다.<br />PHP 환경설정을 검사하십시오 H
오류해결 Apache 재시작시 (98)Address already in use: make_sock:could not bind to address 0.0.0.0:80 H
오류해결 httpd: Syntax error on line 106 of /usr/local/server/apache/conf/httpd.conf: Cannot load /usr/local/… H
오류해결 apachectl start시 httpd: apr_sockaddr_info_get() failed for 123-123-123-123.youiwe.co.kr 오류해결 H
오류해결 아파치가 정상적으로 작동하는데 페이지가 열리지 않는 경우 H
오류해결 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (… H
오류해결 Field 'name' doesn't have a default value 오류해결 H
오류해결 php 5.4이상 로그인이 정상적으로 되지 않거나 홈페이지가 정상적으로 보이지 않는 경우 H
오류해결 cannot find sfc.dll plese re-install this application 오류해결 H
오류해결 Cannot start session without errors, please check errors given in your PHP and/or webserver log file… H
오류해결 Warning Cannot modify header information 오류해결 H
오류해결 ERROR 1040 (08004): Too many connections H
게시물 검색