MySQL
8.4.2
Source Code Documentation
COM_INIT_DB
Change the default schema of the connection
Returns
OK_Packet
on success
ERR_Packet
on error
Payload
Type
Name
Description
int<1>
command
0x02: COM_INIT_DB
string<EOF>
schema name
name of the schema to change to
Example
05 00 00 00 02 74 65 73 74 .....test
Client/Server Protocol
Connection Lifecycle
%Command Phase
Utility Commands
Generated by
1.9.2