• Davi Arnaut's avatar
    Bug#41190: shared memory connections do not work in Vista, if server started from cmdline · afacea4d
    Davi Arnaut authored
    Backport to MySQL 5.0/1 fix by Vladislav Vaintroub:
    
    In Vista and later and also in when using terminal services, when
    server is started from  command line, client cannot connect to it
    via shared memory protocol.
    
    This is a regression introduced when  Bug#24731 was fixed.  The
    reason is that client is trying to attach to shared memory using
    global kernel object  namespace (all kernel objects are prefixed
    with Global\). However, server started from the command line in
    Vista and later will create shared memory and events using current
    session namespace. Thus, client is unable to find the server and
    connection fails.
    
    The fix for the client is to first try to find server using "local"
    names  (omitting Global\  prefix) and only if server is not found,
    trying global namespace.
    afacea4d
client.c 93 KB