MySQL Version确认问题(版本确认)
作者:Olivia_Vang
这篇文章主要介绍了MySQL Version确认问题(版本确认),具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教
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
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。