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;
…[Read more]