Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


14.6.3 COM_INIT_DB

COM_INIT_DB:

change the default schema of the connection

Returns

OK_Packet or ERR_Packet

Payload
1              [02] COM_INIT_DB
string[EOF]    schema name
Fields
  • command (1) -- 0x02 COM_INIT_DB

  • schema_name (string.EOF) -- name of the schema to change to

Example
05 00 00 00 02 74 65 73    74                         .....test

User Comments
Sign Up Login You must be logged in to post a comment.