本页介绍如何通过私有端点连接到MongoDB SQL接口。使用哪个端点取决于连接方式:
On a dedicated cluster, the SQL Interface uses the standard Atlas cluster private endpoint, with no SQL Interface-specific configuration. To configure one, see Configure Private Endpoints.
Through a federated database instance, the SQL Interface uses a Atlas Data Federation private endpoint, which is distinct from the cluster endpoint. MongoDB supports AWS and Microsoft Azure private endpoints for federated database instances. To learn more, see Set Up a Private Endpoint for a Federated Database Instance.
通过联合数据库实例连接
先决条件
运行 MongoDB 5.0 或更高版本的 Atlas 集群。
An AWS or Azure private endpoint configured in your federated database instance.
步骤
Follow these steps to connect your Atlas cluster to the SQL Interface using a federated database instance private endpoint.
在 Atlas 中,转到项目的联合数据库实例。
如果尚未显示,请从导航栏上的 Organizations 菜单中选择包含项目的组织。
如果尚未显示,请从导航栏的 Projects 菜单中选择您的项目。
在侧边栏中,单击 Services 标题下的 Data Federation。
显示Data Federation 页面。
连接到专用集群
专用集群使用标准Atlas 集群私有端点。 SQL接口不需要单独的端点,也不需要特定于SQL接口的配置。
先决条件
运行MongoDB 6.0 或更高版本的专用集群
M10及更高版本。要连接的MongoDB 数据库用户。
步骤
要通过私有端点连接,请执行以下操作:
为集群配置私有端点。
To learn how, see Configure Private Endpoints.