mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
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 Reviewers: ======== Sergei Golubchik <serg@mariadb.com> Vladislav Vaintroub <wlad@mariadb.com>
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
#
|
|
# MDEV-14974: --port ignored for --host=localhost
|
|
#
|
|
#
|
|
# The following group of tests should produce no warnings
|
|
#
|
|
# exec MYSQL --host=localhost -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: Localhost via UNIX socket
|
|
# exec MYSQL --port=MASTER_MYPORT --protocol=tcp -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: localhost via TCP/IP
|
|
# exec MYSQL --host=localhost --port=MASTER_MYPORT --protocol=socket -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: Localhost via UNIX socket
|
|
# exec MYSQL --host=127.0.0.1 --port=MASTER_MYPORT -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: 127.0.0.1 via TCP/IP
|
|
# exec MYSQL --host=localhost --socket=MASTER_MYSOCK --port=MASTER_MYPORT -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: Localhost via UNIX socket
|
|
# exec MYSQL --host=localhost --socket=MASTER_MYSOCK -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
Connection: Localhost via UNIX socket
|
|
#
|
|
# The remaining tests should produce warnings
|
|
#
|
|
# exec MYSQL --host=localhost --port=MASTER_MYPORT -e "status" 2>&1 | grep "Connection:\|WARNING:"
|
|
WARNING: Forcing protocol to TCP due to option specification. Please explicitly state intended protocol.
|
|
Connection: localhost via TCP/IP
|