• Brandon Nesterenko's avatar
    MDEV-14974: --port ignored for --host=localhost · b6cfb296
    Brandon Nesterenko authored
    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>
    b6cfb296
mysql.cc 153 KB