How to pull high-level server information from Mysql MySQL workbench shows the following under server stats:

I know it can grab the Connection Name and the Port from the data that I'm using to connect, but where does it grab the Host, socket, Version, Compiled For, and Running Since from? Is there a query that can grab all that information?
This info comes from server system variables. Look in the Administration secion -&gt; Status and System Variables:

Here I filtered for all variables that contain version. In plain SQL you would use this query: select @@version, select @@innodb_version etc.
Of course, some of the info is just what you specified when you defined the connection (like socket, ip, port, config file etc.).