22.9.8 Performance Schema Connection Attribute Tables The session_account_connect_attrs Table The session_connect_attrs Table

As of MySQL 5.6.6, application programs can provide key/value connection attributes to be passed to the server at connect time, using the mysql_options() and mysql_options4() C API functions. The Performance Schema exposes this information through these tables:

The set of connection attributes visible on a given connection may vary depending on your platform and Connector used to establish the connection.

The libmysqlclient client library sets these attributes:

Attribute names that begin with _ are reserved for MySQL itself and should not be used by client applications. This permits new attributes to be introduced by MySQL without colliding with application attributes.

Many MySQL client programs set a program_name attribute with a value equal to the client name. For example, mysqladmin and mysqldump set program_name to mysqladmin and mysqldump, respectively.

Some MySQL clients define additional attributes: