如何检索 MySQL 数据库管理系统 (DBMS) 的当前版本? [英] How to retrieve the current version of a MySQL database management system (DBMS)?

查看:26
本文介绍了如何检索 MySQL 数据库管理系统 (DBMS) 的当前版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

What command returns the current version of a MySQL database?

推荐答案

很多答案都建议使用 mysql --version.但是 mysql 程序是客户端.服务器是mysqld.所以命令应该是

Many answers suggest to use mysql --version. But the mysql programm is the client. The server is mysqld. So the command should be

mysqld --version

mysqld --help

这在 Debian 和 Windows 上对我有用.

That works for me on Debian and Windows.

当连接到带有客户端的 MySQL 服务器时,您可以使用

When connected to a MySQL server with a client you can use

select version()

select @@version

这篇关于如何检索 MySQL 数据库管理系统 (DBMS) 的当前版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆