Docs Menu
Docs Home
/

연결 문자열

연결 문자열을 사용하여 MongoDB 인스턴스와 다음 대상 간의 연결을 정의할 수 있습니다.

  • 드라이버를 사용해서 연결할 경우의 애플리케이션입니다.

  • Tools such as MongoDB Compass and MongoDB Shell (mongosh).

MongoDB can use one of two connection string formats:

  • SRV connection strings use the mongodb+srv:// prefix and provide a simplified way to connect to a cluster. SRV connection strings automatically include all the seed list hosts, which can change the servers in rotation without requiring client reconfiguration. When possible, use SRV connection strings instead of the standard connection string format.

  • Standard connection strings use the mongodb:// prefix and require you to include all cluster members in replica sets and sharded clusters.

Use the selectors at the top of the page to choose your deployment type and connection string format. Complete the following steps to find your connection string.

For a full list of connection string options, see Connection String Options.

더 많은 연결 문자열 예제는 다음을 참조하세요.

돌아가기

클라이언트 라이브러리

이 페이지의 내용