--store-connection-settings
This page is part of MariaDB's Documentation.
The parent of this page is: mariadb-shell for MariaDB Shell
Topics on this page:
Overview
Stores current connection settings for selected profile (implies --profile,overwriting or creating a new one)
See also: mariadb-shell for MariaDB Shell, in 23.02, in 23.01, in 22.12, and in 22.10
USAGE
mariadb-shell [--store-connection-settings --profile <profile_name>]
DETAILS
Option | Default Behavior | Argument |
---|---|---|
| If omitted, MariaDB Shell does not save connection settings | The settings are saved in the |
EXAMPLES
To save connection settings as a profile named test
:
$ mariadb-shell \
--host host.example.com \
--user user_name \
--password 'user_password' \
--database test \
--store-connection-settings \
--profile test
The connection settings will be saved in the .msh.cnf
file under the [profile test]
section:
[profile test]
host = host.example.com
user = user_name
password = PASSWORD_HASH
port = 3306
database = test
unix_socket = /run/mysqld/mysqld.sock
CHANGE HISTORY
Release Series | History |
---|---|
23.03 |
|
23.02 |
|
23.01 |
|
22.12 |
|
22.10 |
|