find mysql version code example
Example 1: mysql version
mysql
mysql -V
SHOW VARIABLES LIKE ‘%version%’;
Example 2: find mysql version linux
SHOW VARIABLES LIKE "%version%";
+
| Variable_name | Value |
+
| protocol_version | 10 |
| version | 5.0.27-standard |
| version_comment | MySQL Community Edition - Standard (GPL) |
| version_compile_machine | i686 |
| version_compile_os | pc-linux-gnu |
+
5 rows in set (0.04 sec)
Example 3: how to get current mysql version
SELECT VERSION ();
Example 4: what is my mysql version
Mysql version
mysql -V