COM_CHANGE_USER
You are viewing an old version of this article. View
the current version here.
COM_CHANGE_USER resets the connection and re-authenticates with the given credentials. The packet is identical to the authentication packet in the connection handshake.
Fields
- int<1> 0x11 : COM_CHANGE_USER header
- string<NUL> username
- if (server_capabilities & CLIENT_SECURE_CONNECTION)
- int<1> length of authentication response
- string<lenenc> authentication response
- else
- string<NUL> authentication response
- if (server_capabilities & CLIENT_CONNECT_WITH_DB)
- string<NUL> default schema name
- if (server_capabilities & CLIENT_PLUGIN_AUTH)
- string<NUL> authentication plugin name
- if (server_capabilities & CLIENT_CONNECT_ATTRS)
- int<lenenc> size of connection attributes
- loop:
- string<lenenc> key
- string<lenenc> value
Response
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.