mysql version
snippet in sql

mysql version

user6655

# console
mysql --version
mysql -V

# sql query
SHOW VARIABLES LIKE ‘%version%’;

mysql version

user9620

mysqld --version