본문 바로가기
MySql

MySQL max_user_connections 대 max_connections

by 베이스 공부 2020. 11. 20.
반응형

슬프게도 MySQL 문서가 아닌 곳 에서도이 쿼리에 대한 직접적인 설명을 찾을 수 없습니다.

다양한 포럼의 일부 사람들은 max_user_connections가 max_connections보다 클 수 없다고 말했습니다. 예를 들어, 한 사용자가 3 개의 max_user_connections 를 가지고 있고 다른 사용자가 15 개의 max_user_connections 를 가지고 있다면, 그들은 max_connections가 적어도 3 + 15 = 18 이상이어야한다고 말합니다. 코드>.


누군가 MySQL의 두 옵션이 서로 어떻게 영향을 미치는지 설명해 주시겠습니까?

 

해결 방법

 


MySQL 서버 리소스의 클라이언트 사용을 제한하는 한 가지 방법은 다음과 같습니다. set the global max_user_connections system variable to a nonzero value. This limits the number of simultaneous connections that can be made by any given account, but places no limits on what a client can do once connected. In addition, setting max_user_connections does not enable management of individual accounts. Both types of control are of MySQL 관리자에게 관심이 있습니다.


허용되는 최대 동시 클라이언트 연결 수입니다. 으로 기본값은 151입니다.


max_connections = 총 연결 제한
max_user_connections = 사용자 당 제한

따라서 max_user_connections 의 값은 max_connections 의 값을 초과하지 않아야합니다.

 

참조 페이지 https://stackoverflow.com/questions/30020330

 

 

반응형

댓글