--profile

Overview

Specifies a profile defined in ~/.msh.cnf to use for the connection.

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

USAGE

mariadb-shell [--profile <profile_name>]

DETAILS

Option

Default Behavior

Argument

--profile

If omitted, MariaDB Shell does not use a saved profile to connect

Profile name as specified in the [profile] section of the ~/.msh.cnf configuration file

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

To connect to a host using a saved profile:

$ mariadb-shell \
   --profile example_profile

The following example ~/.msh.cnf configuration file shows a profile that was created by the wizard using MariaDB Shell's connect command:

[profile example_profile]
host = host.example.com
user = app_user
password = PASSWORD_HASH
database = test
port = 3306

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.03

  • Present starting in MariaDB Shell 23.03.1.

23.02

  • Present starting in MariaDB Shell 23.02.1.

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.

EXTERNAL REFERENCES