version of mysql code example
Example 1: mysql version
# console
mysql --version
mysql -V
# sql query
SHOW VARIABLES LIKE ‘%version%’;
Example 2: what is my mysql version
Mysql version
mysql -V
Example 3: mysql version
mysqld --version
# console
mysql --version
mysql -V
# sql query
SHOW VARIABLES LIKE ‘%version%’;
Mysql version
mysql -V
mysqld --version