Skip to content

Mariadb Connection Strings

MariaDB Connection String

mariadb://username:password@localhost:3306/DB_Name

MariaDB Connection String using DB_Name

mariadb://username:password@localhost:3306/DB_Name?characterEncoding=UTF-8&serverTimezone=UTC
Demo example:
mariadb://test_user:test_password@127.0.0.1:3306/mysql?multipleStatements=true

username: DB Username.

password: DB Password.

localhost: MariaDB server IP or DNS.

3306: MariaDB server default port.

DB_Name: Is your MariaDB schema name.

characterEncoding: Which character encoding you want to use.

serverTimezone: Which timezone you want to use.

Ref_Link: Connection String URI Format