Documentation Home
MySQL Internals Manual Authentication Method Change

  1. the client connecting to the server

  2. the server responds with the Initial Handshake Packet

  3. the client sends the Handshake Response Packet

  4. the server responds with the Authentication Method Switch Request Packet to tell the client which authentication method to use.

  5. client and server exchange further packets as required by the authentication method used

  6. the server responds with OK_Packet or rejects connection with ERR_Packet.