--connect-timeout (-t)
This page is part of MariaDB's Documentation.
The parent of this page is: mariadb-shell for MariaDB Shell
Topics on this page:
Overview
Number of seconds to wait for the server response during the initial handshake before the connection times out.
See also: mariadb-shell for MariaDB Shell, in 23.02, in 23.01, in 22.12, and in 22.10
USAGE
mariadb-shell [{--connect-timeout | -t} <seconds>]
DETAILS
Option | Default Behavior | Argument |
---|---|---|
--connect-timeout -t | If omitted, the connection timeout is | Number of seconds |
EXAMPLES
To set the connection timeout to 10
seconds:
$ mariadb-shell \
--host 192.0.2.1 \
--user user_name \
--password 'user_password' \
--connect-timeout 10
To use the short option names, the equivalent command is:
$ mariadb-shell \
-h 192.0.2.1 \
-u user_name \
-p 'user_password' \
-t 10
CHANGE HISTORY
Release Series | History |
---|---|
23.03 |
|
23.02 |
|
23.01 |
|
22.12 |
|
22.10 |
|