MySQL Version确认问题(版本确认)
目录
- mysql Version确认(版本确认)的几个方法
- 1.SHOW VARIABLES LIKE 'VERSION';
- 2.select version();
- 3.STATUS;
- 4.window 命令行 连接时
- 总结
MySQL Version确认(版本确认)的几个方法
1.SHOW VARIABLES LIKE 'VERSION';
mysql> SHOW VARIABLES LIKE 'VERSION';rQaUg +---------------+--------+ | Variable_name | Value | +---------------+--------+ | version 编程客栈| 8.0.12 | +---------------+--------+ 1 row in set, 1 warning (0.00 sec)
2.select version();
mysql> select version(); +-----------+ | version() | +-android----------+ | 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: javascript 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:\Progra开发者_Elasticsearchm Files\MySQL\MySQL Server 8.0\bin>mysql -u root -p Enter password: ********* Welcome to the rQaUgMySQL monitor. Commands end with ; or \g. Your MySQL connection id is 71 Server version: 8.0.12 MySQL Community Server - GPL
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持我们。
精彩评论