Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5, 10.6, 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.7(EOL), 10.8(EOL)
-
None
-
None
Description
MDEV-14974 has improved on handling combinations of different connection protocol options.
However there are cases when a warning is missed out to inform on (and possibly explain why) a supplied option got ignored. In my view it's better to emit such warnings, even though the docs say on behavioral nuances.
E.g
../client/mysql --port=1234 --protocol=socket --socket=/home/andrei/MDB.WTs/CS/Review/W/mysql-test/var_expr/tmp/mysqld.1.sock --user=root
Welcome to the MariaDB monitor.
port is disregarded (and silently) while host does not:
../client/mysql --protocol=socket --host=127.0.0.1 --socket=/home/andrei/MDB.WTs/CS/Review/W/mysql-test/var_expr/tmp/mysqld.1.sock --user=root
ERROR 2002 (HY000): Can't connect to server on '127.0.0.1' (115)
When both host,port are supplied they are favored over socket, but silently
../client/mysql --host=127.0.0.1 --socket=/home/andrei/MDB.WTs/CS/Review/W/mysql-test/var_expr/tmp/mysqld.1.sock --port=12460 --user=root
Welcome to the MariaDB monitor.
Attachments
Issue Links
- relates to
-
MDEV-14974 --port ignored for --host=localhost
- Closed