Documentation Home
MySQL Internals Manual


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
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.