___|  _ \   |  |    |   |_ _|\ \     / ____|
 |     |   |  |  |    |   |  |  \ \   /  __|
 |   | |   | ___ __|  ___ |  |   \ \ /   |
\____|\___/     _|   _|  _|___|   \_/   _____| 

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

[mysql] too many connections 에러 이유와 해결방안

BY: @lku | CREATED: Feb. 27, 2018, 3:36 p.m. | VOTES: 2 | PAYOUT: $0.04 | [ VOTE ]

too many connections 에러의 경우
mysql에 연결된 클라이언트의 수가 일정수치 이상인 경우 나타는 에러메시지이다.

<확인>
* mysql 연결할 수 있는 최대 클라이언트 갯수 확인
-> mysql> show variables like '%max_connect%';
[IMAGE: https://steemitimages.com/DQmYqgeb9qApPC6XagcSxRqW1de4f4cL3eoH3ikGMfN1NPk/image.png]

<해결 방안>
1. mysql 설정파일 변경 후 mysql 재시작
-> [mysqld]
max_connections = 500
wait_timeout = 300
-> 해당방법의 경우 max_connections는 214까지만 변경이되고 wait_timeout은 변경되지 않아 다음 방법으로 진행

  1. mysql에 접속하여 세팅
    mysql> set global max_connections=500;
    mysql> set wait_timeout=60;
TAGS: [ #server ] [ #mysql ] [ #error ] [ #kr ]

Replies

NO REPLIES FOUND.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>