SELECT VERSION() AS server_version,
@@version_comment AS vendor_build,
@@GLOBAL.thread_handling AS thread_handling,
@@GLOBAL.thread_cache_size AS resolved_thread_cache_size;
SHOW GLOBAL STATUS
WHERE Variable_name IN (
'Uptime', 'Connections', 'Aborted_connects',
'Threads_created', 'Threads_cached', 'Threads_connected'
);