ApsaraDB for SelectDB uses the MySQL network connectivity protocol. You can connect to an ApsaraDB for SelectDB instance using tools that are compatible with the MySQL ecosystem, such as command line interfaces, Java Database Connectivity (JDBC)/Open Database Connectivity (ODBC) drivers, and visualization tools. This topic describes how to connect to an ApsaraDB for SelectDB instance using Data Management (DMS).
Background information
DMS is a graphical data management tool provided by Alibaba Cloud. You can use DMS to manage relational databases and NoSQL databases. DMS supports features such as data management, SQL operations, data import, data export, database cloning, performance optimization, and security audits. You can use DMS to easily manage databases, create databases and tables, and query data online. This enhances data security, improves management efficiency, and clarifies the value of your data.
Prerequisites
An ApsaraDB for SelectDB instance is created. For more information, see Create an instance.
The password for the admin user of the instance is reset. For more information, see Reset the admin password.
The IP addresses of DMS servers are added to the whitelist of the ApsaraDB for SelectDB instance. For more information about the DMS IP address list and how to configure a whitelist, see DMS IP address segments and Configure a whitelist.
Procedure
Log on to the ApsaraDB for SelectDB console.
Click Logon.
After you successfully log on, in the navigation pane on the left, double-click the name of the target database to open the SQL Console page. You can then execute SQL statements. For more information, see Create a database and write data.
FAQ
Q: What should I do if a whitelist error message appears when I log on to an ApsaraDB for SelectDB instance using DMS, as shown in the following figure?

A: Click Set Whitelist in the dialog box. The system attempts to automatically add the IP addresses of DMS servers to the database whitelist. If this attempt fails, you must add the IP addresses manually. For more information, see Add DMS IP address segments.