LoginRequest packet

A LoginRequest packet is received from the database client to start authentication with MySQL. It contains all available information about the database user, and therefore is kept as part of the connection context (as context.connectionContext.loginRequest)


Methods

int getCapabilityFlags(): gets the client's capability flags.

void setCapabilityFlags(int): sets the client's capability flags.

boolean isSSLRequest(): returns true if the request is for an SSL/TLS connection.

int getMaxPacketSize(): returns the maximum packet size requested by the client.

void setMaxPacketSize(int): sets the maximum packet size requested by the client.

int getCharacterSet(): returns the character set code requested by the client.

void setCharacterSet(int): sets the character set code requested by the client.

string getUserName(): returns the database client's user name.

void setUserName(string): sets the database client's user name (only makes sense during initial connection).

string getDatabase(): returns the name of the initial database.

void setDatabase(string): sets the name of the initial database.

string getAuthPluginName(): returns the name of the requested authentication plugin.

void setAuthPluginName(string): sets the name of the requested authentication plugin.

string getClientConnectAttribute(string): returns the value of the specified connect attribute (e.g. "_client_name" = "libmysql")

void setClientConnectAttribute(string name, string value): sets the value of the specified connect attribute.

void removeClientConnectAttribute(string): removes the specified client connect attribute,