웹모아
웹모아[가입] 로그인 / 회원가입   검색     


  
애러처리
 

ERROR 1040 (08004): Too many connections 에러발생시
2010-05-03 22:47:28 댓글:(0)   조회:4713
 

[root@localhost sokj00]# /usr/local/mysql/bin/mysqladmin -u root -p processlist
Enter password:
+-----+------+-----------+----+---------+------+-------+------------------+
| Id  | User | Host      | db | Command | Time | State | Info             |
+-----+------+-----------+----+---------+------+-------+------------------+
| 308 | root | localhost |    | Query   | 0    |       | show processlist |
+-----+------+-----------+----+---------+------+-------+------------------+

[root@localhost sokj00]# /usr/local/mysql/bin/mysqladmin -u  root -p variables | grep max_connections
Enter password:
| max_connections                 | 100  

[root@localhost sokj00]# /usr/local/mysql/bin/mysqladmin -u  root -p variables | grep table_cache
Enter password:
| table_cache                     | 64  


[root@localhost sokj00]# /usr/local/mysql/bin/mysqladmin -u  root -p variables | grep wait_timeout
Enter password:
| innodb_lock_wait_timeout        | 50                                              |
| table_lock_wait_timeout         | 50                                              |
| wait_timeout                    | 28800 

mysql> show status like '%CONNECT%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| Aborted_connects         | 217   |
| Connections              | 330   |
| Max_used_connections     | 101   | <====
| Ssl_client_connects      | 0     |
| Ssl_connect_renegotiates | 0     |
| Ssl_finished_connects    | 0     |
| Threads_connected        | 101   | <====
+--------------------------+-------+
7 rows in set (0.00 sec)

 

threads_connected : 현재 연결된 접속수
Max_used_connection : 연결되었던 최대 접속수


ERROR 1040 (08004): Too many connections

====> SET GLOBAL max_connections = 500; ( mysql 리부팅안하고 max_connections을 늘림 )

or

====> vi /etc/my.cnf
[mysqld]
max_connections = 500
. 


[이전글]  #1194 - Table is marked as crashed and should be repaired
[다음글]  ERROR 2002 (HY000)


 
댓글쓰기는 회원(로그인 하신분) 이상 가능합니다.


 댓글 (0)

  
애러처리
페이지: 1 / 2   

 #1194 - Table is marked as crashed and should be repaired
열람:3394   2011.09.24


 ERROR 1040 (08004): Too many connections 에러발생시
열람:4714   2010.05.03


 ERROR 2002 (HY000)
열람:3400   2010.05.03


 #1030 - Got error 134 from storage engine
열람:3338   2010.04.20


 REPAIR TABLE - 테이블 복구.
열람:4007   2010.04.15


   [RE] REPAIR TABLE - 테이블 복구.
열람:2658   2012.04.09


 Mysql 문자셋이 안맞는 경우 - mysql_err : 1267 : Illegal mix of collations
열람:12775   2010.02.27


 mysql 한글문자중 &#로 변환되는 문자 처리 (펌)
열람:3669   2009.01.21


 도스용 dbf파일 vfp에서 띄울때 한글이 깨지는 문제
열람:2838   2008.10.27


 mysql의 테이블이 깨진경우 검사 및 복구 하는 방법
열람:3213   2008.10.25



[1]  [2]  

복수단어 검색은 공백(space)로 구분해 주세요.




 
최근 글 [손님]
 
인기 글 [손님]