Getting started with Yandex WebSQL
You can connect to managed database clusters from clouds and folders that belong to your Yandex Cloud organization. If you switch to a different organization, you will have access to clusters from other clouds and folders. The connections you added will be available while you are in the current Yandex Cloud organization.
Once connected to a database, you will be able to view DB schemas, tables, and views, as well as run queries. It is a web-based tool that simplifies writing queries by suggesting prompts and commands.
Yandex WebSQL supports the following DB versions:
- PostgreSQL: 12 and higher
- MySQL®: 5 and higher
- ClickHouse®: 23 and higher
- Redis (non-sharded clusters only): 6 and higher
In this section, you will learn how to connect to:
- Managed database clusters within Yandex Cloud
- Public databases via the internet
Getting started
- Go to the management console
and log in to Yandex Cloud or sign up if not signed up yet. - On the Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account, create one. - Select the organization to work with Yandex WebSQL in or create a new one.
How to connect to a managed database cluster within Yandex Cloud
Before creating a connection, make sure that you have selected the required folder. If you have access to PostgreSQL, ClickHouse®, MySQL®, or Redis clusters previously created in that folder, they will automatically appear in the Yandex Cloud connections subsection. You will only need to create a connection to the appropriate database in the cluster.
Connections to clusters created in Yandex MetaData Hub Connection Manager will also be displayed automatically, provided you have roles to manage these connections in Connection Manager.
To create a connection to a managed database cluster:
- Make sure WebSQL access is enabled in the cluster settings.
- Open Yandex WebSQL Connections
. - Under
Connections, click . - Name the connection.
- In the Database type field, select the DB you need: PostgreSQL, ClickHouse®, MySQL®, or Redis.
- In the Cluster field, select the managed database cluster you want to connect to.
- Specify the Username you will use to connect to cluster databases.
- Enter the user Password.
- List the Databases you want to connect to. You can only connect to the databases that exist in this cluster. The user you specified must have access to them configured.
- Click Create.
If the connection is successful, you will see the cluster structure in the connection tree. Connections to databases within a cluster are grouped into an expandable list under the name of that cluster.
How to connect to a public database
To connect to a public database via the internet:
-
Open Yandex WebSQL Connections
. -
In
Connections, click . -
In the bottom-left corner of the window that opens, click External connection.
-
Name the connection.
-
In the Database type field, select the database you need: PostgreSQL, ClickHouse®, MySQL®, or Redis.
-
Under Hosts, configure the hosts:
-
Specify the database host FQDN and port number for connecting to the database.
-
For ClickHouse®, also specify the Native Protocol port and shard name.
-
(Optional) Enable TLS.
If your company has a certification authority (CA), the certificate issued by the CA will be used by default. If the company has no CA, upload the server's TLS certificate.
-
-
Specify the Username you will use to connect to the database.
-
Enter the user Password.
-
List the Databases you want to connect to. You can only connect to existing databases. The user you specified must have access to them configured.
-
Click Create.
If the connection is successful, you will see the database structure in the connection tree.
What's next
ClickHouse® is a registered trademark of ClickHouse, Inc