All Products
Search
Document Center

AnalyticDB:Smartbi

Last Updated:Mar 28, 2026

Connect Smartbi to an AnalyticDB for MySQL cluster to query and visualize your data directly from Smartbi reports.

Prerequisites

Before you begin, make sure you have:

Choose your connection type

The hostname in your JDBC connection string depends on how Smartbi reaches your cluster:

Connection typeWhen to useHostname to use
Virtual Private Cloud (VPC) endpointSmartbi and the cluster are in the same zoneVPC endpoint of the cluster
Public endpointSmartbi and the cluster are in different zonesPublic endpoint of the cluster

To find the endpoint and port, go to the Cluster Information page and check the Network Information section.

Connect Smartbi to AnalyticDB for MySQL

  1. Start Smartbi.

  2. Click the 1 icon in the left-side navigation pane, or click Data connection in the right-side menu.

    1

  3. On the All tab of the Data connection page, click Aliyun AnalyticDB.

    3

  4. On the Create Relational datasources page, configure the connection parameters.

    4

    ParameterDescription
    NameA unique name for this data source
    Alias(Optional) A display name for this data source
    Driver typeSelect aliyun AnalyticDB
    Driver storage directorySelect Built-in product
    Driver ClassDefault value: com.mysql.jdbc.Driver. Leave this unchanged.
    Connection stringThe JDBC connection string for your cluster. See the format below.
    UsernameThe account used to connect to the cluster
    PasswordThe password for the account

    Connection string format:

    jdbc:mysql://<hostname>:<port>/<database>?useUnicode=true&characterEncoding=UTF-8&engine=MPP

    Replace the placeholders with your actual values:

    FieldDescriptionExample
    <hostname>The VPC or public endpoint of your clusteram-xxxx.ads.aliyuncs.com
    <port>The cluster's port number. Default is 3306.3306
    <database>The name of the database in your clustermy_database
    useUnicode=true&characterEncoding=UTF-8Character encoding settings. Leave unchanged.
    engine=MPPSpecifies the Massively Parallel Processing (MPP) query engine. Leave unchanged.
  5. Click Test connection(T). In the message that appears, click OK(O).

    8

  6. Click Save(S) in the lower-right corner.

After saving, you can manage your cluster databases from within Smartbi. In the left-side navigation pane, choose Data connection > adb > Database Management(S) to add resources to the database. For details, see Database management.

4

What's next

With the connection established, use Smartbi to query, analyze, and visualize data from your AnalyticDB for MySQL cluster. For full Smartbi documentation, see Smartbi documentation.