• Oleg Smirnov's avatar
    MDEV-30639 Upgrade to 10.8 and later does not work on Windows · 8e2b20bf
    Oleg Smirnov authored
    During the upgrade procedure on Windows mysqld.exe is started with
    the named pipe connection protocol. mysqladmin.exe then pings the
    server to check if is up and running. Command line looks like:
       mysqladmin.exe --protocol=pipe --socket=mysql_upgrade_service_xxx ping
    But the "socket" parameter resets the "protocol" which was previously
    initialized with the "pipe" value, setting it to "socket".
    As a result, connection cannot be established and the upgrade
    procedure fails.
    "socket" in Windows is used to pass the name of the pipe so resetting
    the protocol is not valid in this case.
    
    This commit fixes resetting of the "protocol" parameter with "socket"
    parameter in the case when protocol has been previously initialized
    to "pipe" value
    8e2b20bf
mysqlslap.c 67.6 KB