This topic describes how to use DbVisualizer to connect to an AnalyticDB for MySQL cluster.

Prerequisites

Before you use DbVisualizer, make sure that the following requirements are met:
  • You are familiar with the compatibility between DbVisualizer and AnalyticDB for MySQL. For more information, see Compatibility overview.
  • MySQL JDBC is installed.
  • DbVisualizer is installed.
  • The IP address of the device on which DBVisualizer is installed is added to a whitelist of the AnalyticDB for MySQL cluster. For more information, see Configure a whitelist.
  • A public endpoint is obtained for the AnalyticDB for MySQL cluster if you want to connect to the cluster over the Internet. For more information, see Apply for or release a public endpoint.

Procedure

  1. Start DbVisualizer and choose Tools > Connection Wizard. In the New Connection Wizard dialog box, enter a name for the connection to facilitate subsequent management.
    1
  2. Click Next and select MySQL as the database driver from the drop-down list.
    2
  3. Click Next and configure the connection parameters described in the following table.
    3
    Parameter Description
    Notes The description of the connection.
    Database Server

    The endpoint used to connect to the AnalyticDB for MySQL cluster. You can view the connection information about the cluster on the Cluster Information page of the AnalyticDB for MySQL console.

    Database Port The port number used to connect to the AnalyticDB for MySQL cluster. The default port number is 3306.
    Database

    The name of the database in the AnalyticDB for MySQL cluster.

    Database Userid
    The name of the account used to connect to the AnalyticDB for MySQL cluster. You can use one of the following account types:
    • Privileged account
    • Standard account
    Database Password

    The password of the account used to connect to the AnalyticDB for MySQL cluster.

  4. After you configure the preceding parameters, click Ping Server to test connectivity. After the connection passes the test, click Finish.

    After the AnalyticDB for MySQL cluster is connected, you can use DbVisualizer to manage data.