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

查看:242
本文介绍了如何获取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天全站免登陆