1SHOW VARIABLES LIKE "%version%";
2+-------------------------+------------------------------------------+
3| Variable_name | Value |
4+-------------------------+------------------------------------------+
5| protocol_version | 10 |
6| version | 5.0.27-standard |
7| version_comment | MySQL Community Edition - Standard (GPL) |
8| version_compile_machine | i686 |
9| version_compile_os | pc-linux-gnu |
10+-------------------------+------------------------------------------+
115 rows in set (0.04 sec)