gpt4 book ai didi

mysql - 如何检索 MySQL 数据库管理系统 (DBMS) 的当前版本?

转载 作者:IT老高 更新时间:2023-10-28 12:47:38 25 4
gpt4 key购买 nike

什么命令返回 MySQL 数据库的当前版本?

最佳答案

试试这个功能-

SELECT VERSION();
-> '5.7.22-standard'

VERSION()

或者更多细节使用:

SHOW VARIABLES LIKE "%version%";
+-------------------------+------------------------------------------+
| Variable_name | Value |
+-------------------------+------------------------------------------+
| protocol_version | 10 |
| version | 5.0.27-standard |
| version_comment | MySQL Community Edition - Standard (GPL) |
| version_compile_machine | i686 |
| version_compile_os | pc-linux-gnu |
+-------------------------+------------------------------------------+
5 rows in set (0.04 sec)

MySQL 5.0 Reference Manual (pdf) - Determining Your Current MySQL Version - page 42

关于mysql - 如何检索 MySQL 数据库管理系统 (DBMS) 的当前版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8987679/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com