Skip to content

Structure

MySQLProtocol.HandshakeV10

Protocol::Handshake
struct HandshakeV10

Overview

When the client connects to the server the server sends a handshake packet to the client. Depending on the server version and configuration options different variants of the initial packet are sent.

https://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::Handshake

Topics

Instance Properties

  • authPluginData
    auth_plugin_data_part_1 (string.fix_len) – [len=8] first 8 bytes of the auth-plugin data
  • authPluginName
    auth_plugin_name (string.NUL) – name of the auth_method that the auth_plugin_data belongs to
  • capabilities
    The server’s capabilities.
  • characterSet
    character_set (1) – default server character-set, only the lower 8-bits Protocol::CharacterSet (optional)
  • connectionID
    connection_id (4) – connection id
  • protocolVersion
    protocol_version (1) – 0x0a protocol_version
  • serverVersion
    server_version (string.NUL) – human-readable server version
  • statusFlags
    status_flags (2) – Protocol::StatusFlags (optional)

Type Methods

Enumerations

Relationships

Conforms To