summaryrefslogtreecommitdiff
path: root/man/mysql.1
diff options
context:
space:
mode:
authorBrandon Nesterenko <brandon.nesterenko@mariadb.com>2021-05-10 11:10:53 -0600
committerBrandon Nesterenko <brandon.nesterenko@mariadb.com>2021-05-10 13:36:42 -0600
commit7c1231a6d59edd319fe8a5f3cb5782fc641d9a0a (patch)
tree2ed1deff4b9fcf684426f4c038c894cdf51ce80f /man/mysql.1
parentf8665314d4ba190679001b81bb7d9fd7a38fc0f6 (diff)
downloadmariadb-git-10.6-MDEV-14974.tar.gz
MDEV-14974: --port ignored for --host=localhostbb-10.6-MDEV-1497410.6-MDEV-14974
Problem: ======= MariaDB's command line utilities (e.g., mysql, mysqldump, etc) silently ignore connection property options (e.g., --port and --socket) when protocol is not explicitly set via the command-line for localhost connections. Fix: === If connection properties are specified without a protocol, override the protocol to be consistent. For example, if --port is specified, automatically set protocol=tcp. Caveats: ======= * When multiple connection properties are specified, nothing is overridden * If protocol is is set via the command-line, its value is used
Diffstat (limited to 'man/mysql.1')
-rw-r--r--man/mysql.14
1 files changed, 3 insertions, 1 deletions
diff --git a/man/mysql.1 b/man/mysql.1
index 03f23df3660..7f722659d2f 100644
--- a/man/mysql.1
+++ b/man/mysql.1
@@ -862,7 +862,8 @@ Directory for client-side plugins\&.
\fB\-\-port=\fR\fB\fIport_num\fR\fR,
\fB\-P \fR\fB\fIport_num\fR\fR
.sp
-The TCP/IP port number to use for the connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default (3306)\&.
+The TCP/IP port number to use for the connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default (3306)\&.
+Forces --protocol=tcp when specified on the command line without other connection properties\&.
.RE
.sp
.RS 4
@@ -1200,6 +1201,7 @@ Do not write line numbers for errors\&. Useful when you want to compare result f
.sp
For connections to
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&.
+Forces --protocol=socket when specified on the command line without other connection properties; on Windows, forces --protocol=pipe\&.
.RE
.sp
.RS 4