A partir do MySQL 5.7, o esquema de desempenho expõe as variáveis do usuário.
Consulte a tabela
performance_schema.user_variables_by_thread
https://dev.mysql .com/doc/refman/5.7/en/performance-schema-user-variable-tables.html
performance_schema.user_variables_by_thread