Introduction Query Attributes are a relatively new feature of the MySQL Protocol. This is availble since MySQL 8.0.23. Before Query Attributes were introduced there already was already another similar feature: Connetion Attributes, which provides per-connection metadata in the form of key/value pairs. This is what connection attributes look like: mysql > SELECT ATTR_NAME, ATTR_VALUE -> FROM performance_schema.session_connect_attrs -> WHERE PROCESSLIST_ID = 64 ; +------------------+---------------------+ | ATTR_NAME | ATTR_VALUE | +------------------+---------------------+ | _platform | amd64 | | _runtime_version | go1.23.4 | | _client_version | (devel) | | _client_role | binary_log_listener | | _client_name | go-mysql | | _os | linux | +------------------+---------------------+ 6 rows in set (0.00 sec) Connection attributes are set by connectors (wi...