--dsn (--url)

Overview

A formatted URL string, i.e., mariadb://user:password@hostname:port/database

See also: mariadb-shell for MariaDB Shell, in 22.12, and in 22.10

USAGE

mariadb-shell [{--dsn | --url} <url_string>]

DETAILS

Option

Default Behavior

Argument

--dsn
--url

If omitted, MariaDB Shell does not use a DSN to connect

A formatted URL string like mariadb://DATABASE_USER:USER_PASSWORD@HOSTNAME:TCP_PORT/DATABASE/?ssl-ca=CA_CHAIN_PATH

EXAMPLES

To connect to a remote host using a formatted URL string:

$ mariadb-shell \
   --dsn mariadb://app_user:app_user_passwd@host.example.com:3306/test

The equivalent command is:

$ mariadb-shell \
   --url mariadb://app_user:app_user_passwd@host.example.com:3306/test

CHANGE HISTORY

Release Series

History

23.01

  • Present starting in MariaDB Shell 23.01.1.

22.12

  • Present starting in MariaDB Shell 22.12.1.

22.10

  • Present starting in MariaDB Shell 22.10.3.