MySQL Version确认(版本确认)的几个方法
1.SHOW VARIABLES LIKE 'VERSION';
mysql> SHOW VARIABLES LIKE 'VERSION';
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| version | 8.0.12 |
+---------------+--------+
1 row in set, 1 warning (0.00 sec)
2.select version();
mysql> select version();
+-----------+
| version() |
+-----------+
| 8.0.12 |
+-----------+
1 row in set (0.00 sec)
3.STATUS;
mysql> status;
--------------
C:...\mysql.exe Ver 8.0.12 for Win64 on x86_64 (MySQL Community Server - GPL)
Connection id: 63
Current database:
Current user: root@localhost
SSL: Not in use
Using delimiter: ;
Server version: 8.0.12 MySQL Community Server - GPL
.....
Threads: 4 Questions: 4559 Slow queries: 0 Opens: 617 Flush tables: 2 Open tables: 581 Queries per second avg: 0.004
--------------
4.window 命令行 连接时
C:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -u root -p
Enter password: *********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 71
Server version: 8.0.12 MySQL Community Server - GPL
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持我们。