Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex MetaData Hub
    • All guides
      • Creating a connection
      • Viewing a connection
      • Editing a connection
      • Deleting a connection
      • Configuring connection access permissions
  • Audit Trails events
  • Pricing policy
  • Troubleshooting
  • Public materials
  • Release notes

In this article:

  • Connecting to a cluster with a managed database
  • Managed Service for PostgreSQL
  • Managed Service for ClickHouse®
  • Managed Service for MySQL®
  • Yandex Managed Service for Valkey™
  • Managed Service for OpenSearch
  • Managed Service for MongoDB
  • Connecting to a custom database installation
  • PostgreSQL
  • ClickHouse®
  • MySQL®
  • Valkey™
  • Valkey™
  • Trino
  • OpenSearch
  • MongoDB
  1. Step-by-step guides
  2. Connection Manager
  3. Creating a connection

Creating a connection

Written by
Yandex Cloud
Updated at May 5, 2025
  • Connecting to a cluster with a managed database
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Managed Service for MySQL®
    • Yandex Managed Service for Valkey™
    • Managed Service for OpenSearch
    • Managed Service for MongoDB
  • Connecting to a custom database installation
    • PostgreSQL
    • ClickHouse®
    • MySQL®
    • Valkey™
    • Valkey™
    • Trino
    • OpenSearch
    • MongoDB

Note

This feature is at the Preview stage.

You can create connections of the following types:

  • To a cluster with a managed database:
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Managed Service for MySQL®
    • Yandex Managed Service for Valkey™
    • Managed Service for OpenSearch
    • Managed Service for MongoDB
  • To a custom database installation:
    • PostgreSQL
    • ClickHouse®
    • MySQL®
    • Valkey™
    • Valkey™
    • Trino
    • OpenSearch
    • MongoDB

Connecting to a cluster with a managed databaseConnecting to a cluster with a managed database

Managed Service for PostgreSQLManaged Service for PostgreSQL

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to PostgreSQL, select Managed Service for PostgreSQL cluster as the connection type and specify the cluster you need.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the cluster.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
  11. Click Create.

Managed Service for ClickHouse®Managed Service for ClickHouse®

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to ClickHouse®, select Managed Service for ClickHouse® cluster as the connection type and specify the cluster you need.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the cluster.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

Managed Service for MySQL®Managed Service for MySQL®

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to MySQL®, select Managed Service for MySQL® cluster as the connection type and specify the cluster you need.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the cluster.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
  11. Click Create.

Yandex Managed Service for Valkey™Yandex Managed Service for Valkey™

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. From the Connection type list, select Valkey™.
  8. Under Connection to Valkey™, select Yandex Managed Service for Valkey™ cluster as the connection type and specify the cluster you need.
  9. Under Authentication, select how to set the password:
    • Enter manually: Enter the password manually.
    • Generate: Specify the options to generate a Lockbox password automatically.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

Managed Service for OpenSearchManaged Service for OpenSearch

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to OpenSearch, select Managed Service for OpenSearch cluster as the connection type and specify the cluster you need.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the cluster.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
  11. Click Create.

Managed Service for MongoDBManaged Service for MongoDB

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to MongoDB, select Managed Service for MongoDB cluster as the connection type and specify the cluster you need.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the cluster.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You can connect only to the databases that exist in the cluster. You must have access to them configured.
  11. Click Create.

Connecting to a custom database installationConnecting to a custom database installation

PostgreSQLPostgreSQL

Management console
  1. In the management console, select the folder you want to create a connection in.

  2. Select Yandex MetaData Hub.

  3. In the left-hand panel, select Connection manager.

  4. Click Create connection.

  5. Specify the connection name.

  6. (Optional) Add a description and label for the connection.

  7. Select Connection type.

  8. Under Connection to PostgreSQL, specify the connection parameters:

    1. In the Connection type field, select Custom installation.

    2. In the Hosts field, specify the database host address and port number for the connection.

      When creating a connection to a custom database installation intended for Yandex DataLens, specify the host's external address.

    3. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.

  9. Under Authentication:

    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.

  11. Click Create.

ClickHouse®ClickHouse®

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to ClickHouse®, specify the connection parameters:
    1. In the Connection type field, select Custom installation.

    2. In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.

      When creating a connection to a custom database installation intended for Yandex DataLens, specify the the hosts’ external IP addresses.

    3. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.

  9. Under Authentication:
    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

MySQL®MySQL®

Management console
  1. In the management console, select the folder you want to create a connection in.

  2. Select Yandex MetaData Hub.

  3. In the left-hand panel, select Connection manager.

  4. Click Create connection.

  5. Specify the connection name.

  6. (Optional) Add a description and label for the connection.

  7. Select Connection type.

  8. Under Connection to MySQL®, specify the connection parameters:

    1. In the Connection type field, select Custom installation.

    2. In the Hosts field, specify the database host address and port number for the connection.

      When creating a connection to a custom database installation intended for Yandex DataLens, specify the host's external address.

    3. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.

  9. Under Authentication:

    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.

  11. Click Create.

Valkey™Valkey™

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. From the Connection type list, select Valkey™.
  8. Under Connection to Valkey™, specify the connection parameters:
    1. In the Connection type field, select Custom installation.
    2. In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.
    3. (Optional) Enable TLS.
  9. Under Authentication, specify a username and select how you want to set the password:
    • Enter manually: Enter the password manually.
    • Generate: Specify the options to generate a Lockbox password automatically.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

Valkey™Valkey™

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. From the Connection type list, select Valkey™.
  8. Under Connection to Valkey™, specify the connection parameters:
    1. In the Connection type field, select Custom installation.

    2. In the Hosts field, specify the FQDNs or IP addresses of the hosts in the shard, HTTP or TCP port for connection, and the shard name.

      When creating a connection to a custom database installation intended for Yandex DataLens, specify the the hosts’ external IP addresses.

    3. (Optional) Enable TLS.

  9. Under Authentication, specify a username and select how you want to set the password:
    • Enter manually: Enter the password manually.
    • Generate: Specify the options to generate a Lockbox password automatically.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

TrinoTrino

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to Trino, specify the connection parameters:
    1. In the Coordinator field, specify the coordinator host address and port number for the connection.
    2. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. Click Create.

OpenSearchOpenSearch

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to OpenSearch, specify the connection parameters:
    1. In the Connection type field, select Custom installation.
    2. In the Hosts field, specify the database host address and port number for the connection.
    3. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

MongoDBMongoDB

Management console
  1. In the management console, select the folder you want to create a connection in.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. Click Create connection.
  5. Specify the connection name.
  6. (Optional) Add a description and label for the connection.
  7. Select Connection type.
  8. Under Connection to MongoDB, specify the connection parameters:
    1. In the Connection type field, select Custom installation.
    2. In the Hosts field, specify the database host address and port number for the connection.
    3. (Optional) Enable TLS.
      If your company has a certification authority (CA), the certificate issued by that CA will be used by default. If the company has no CA, upload the server's TLS certificate.
  9. Under Authentication:
    1. Specify the Username you will use to connect to the database.
    2. Select the password setting method:
      • Enter manually: You set the password manually.
      • Generate: Password will be generated automatically. You can configure Lockbox password generation rules or leave the default ones.
  10. (Optional) List the databases whose connections you want to manage. You must have access to them configured.
  11. Click Create.

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
All guides
Next
Viewing a connection
© 2025 Direct Cursus Technology L.L.C.