If you are using a MySQL client e.g. MySQL command line or Query Browser, you can simply execute the following mysql version query.mysql
SELECT version();sql
ORspa
SELECT @@version;.net
mysql> SELECT @@version;get
+------------+
| @@version |
+------------+
| 5.7.14-log |
+------------+
1 row in set (0.00 sec)it
You can also use the STATUS command in MySQL cli tool to find MySQL version number (output truncated)io
mysql> SHOW GLOBAL VARIABLES LIKE '%version%'; table
mysql> STATUS;class
Connection id: 11
Current database:
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 5.7.14-log MySQL Community Server (GPL)
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
TCP port: 3306
Uptime: 10 min 19 seccliThreads: 1 Questions: 6566 Slow queries: 0 Opens: 154 Flush tables: 1 Open