check version of mysql server code example
Example: mysql version
# console
mysql --version
mysql -V
# sql query
SHOW VARIABLES LIKE ‘%version%’;
# console
mysql --version
mysql -V
# sql query
SHOW VARIABLES LIKE ‘%version%’;