Documentation Home
MySQL Internals Manual

MySQL Internals Manual  /  ...  /  Non-CLIENT_PLUGIN_AUTH Clients Non-CLIENT_PLUGIN_AUTH Clients

The only situation where server will request authentication method change from a client which does not set CLIENT_PLUGIN_AUTH flag is when the following conditions hold:

In that case server sends Old Authentication Method Switch Request Packet. This packet does not contain new authentication method name, which is implicitly assumed to be Secure Password Authentication, and it does not contain new authentication data. Client replies with Old Handshake Response Packet. To generate password hash client should re-use the random bytes sent by server in the Initial Handshake Packet.