how to check the mysql version of 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%’;