Updated on 2025-11-11 GMT+08:00

Overview

You can connect to an RDS for MariaDB instance through a command-line interface (CLI) or using Java database connectivity (JDBC).

Table 1 Connection methods

Connection Method

Description

Connecting to an RDS for MariaDB Instance Through the MySQL CLI Client

In Linux, you need to install a MariaDB client on your device and connect to the instance through the MySQL CLI over a private or public network.

  • A floating IP address is provided by default.

    When your applications are deployed on an ECS that is in the same region and VPC as the RDS for MariaDB instance, you are advised to use a floating IP address to connect to the instance through the ECS.

  • If you cannot access your RDS for MariaDB instance through a floating IP address, bind an EIP to the instance and connect to the instance through the EIP.

Connecting to an RDS for MariaDB Instance Through JDBC

If you are connecting to an instance through JDBC, the SSL certificate is optional. For security reasons, you are advised to download the SSL certificate to encrypt the connection.