본문 바로가기
MySql

MySQL 연결 문자열에서 "pooling = false"는 무엇을 의미합니까?

by 베이스 공부 2020. 12. 24.
반응형

MySQL 데이터베이스의 .NET 연결 문자열에서 pooling = false 는 무엇을 의미합니까?

다음은 완전한 연결 문자열입니다.

return new MySqlConnection("SERVER=localhost;DATABASE=myDataBase;USER=###;PASSWORD=***;POOLING=FALSE;");

 

해결 방법

 

pooling = false 인 경우 SqlConnection.Close () 를 호출 할 때 연결이 풀로 돌아 가지 않습니다.


이 키의 값이 true로 설정되면 새로 생성 된 connection will be added to the pool when closed by the application. In a next attempt to open the same connection, that connection will be drawn from the pool. Connections are considered the same if they have the same connection string. Different connections have different 연결 문자열

 

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

 

 

반응형

댓글