mysql - 我需要知道他们是否有 ENTERPRISE 或 COMMUNITY MYSQL 版本

标签 mysql server enterprise

我正在为一家公司做一些 MYSQL 工作,我需要知道他们是否有 ENTERPRISE 或 COMMUNITY 版本。我对此进行了研究,根据 mysql 引用页,我应该可以使用“status”命令。根据该引用,“服务器版本”应该是“社区”或“企业”。我们的都没有说(数字,对吗?),只是“5.0.77 Source Distribution”。有没有其他方法可以判断?

最佳答案

tl;dr

试试这个:

mysql> SHOW VARIABLES LIKE "%version%";

正常回答

Using a command client (mysql), the server version of the MySQL server to which you are connected is shown once you are connected. The server version information includes community or enterprise accordingly.

For example, here is the output from a MySQL Community Server edition installed on Linux:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.27-standard MySQL Community Edition - Standard (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

This is an example of the output from MySQL Enterprise Server on Windows:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.28-enterprise-gpl-nt MySQL Enterprise Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

You may also determine the version information using the version variables. Both the version and version_comment variables contain version information for the server to which you are connected. Use the SHOW VARIABLES statement to obtain the information you want, as shown in this example:

mysql> 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)

Straight from the documentation .

当然,STATUS 也是如此;

The STATUS command displays the version as well as version comment information. For example:

mysql> STATUS;
--------------
./client/mysql  Ver 14.12 Distrib 5.0.29, for pc-linux-gnu (i686) using     readline 5.0

Connection id:          8
Current database:
Current user:           mc@localhost
SSL:                    Not in use
Current pager:          /usr/bin/less
Using outfile:          ''
Using delimiter:        ;
Server version:         5.0.27-standard MySQL Community Edition - Standard     (GPL)
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
UNIX socket:            /tmp/mysql.sock
Uptime:                 1 day 3 hours 58 min 43 sec

Threads: 2  Questions: 17  Slow queries: 0  Opens: 11  Flush tables: 1  Open     tables: 6  Queries per second avg: 0.000
--------------

所以我想知道您是否真的只是在查看提供的第一行,或者您是否正在检查下面的“服务器版本”行。

如果对您没有任何帮助,请随时使用您所获得内容的完整转储来编辑您的问题。

编辑

如你found out似乎他们没有在版本之间进行讨论,因为它是一个特定版本的版本,在本例中是一个社区版。因此,答案通常只有在您无法通过查找版本确定时才有效。

关于mysql - 我需要知道他们是否有 ENTERPRISE 或 COMMUNITY MYSQL 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29147413/

相关文章:

mysql - POST 请求返回 422(无法处理的实体)

server - 如何使用 php 脚本重新启动 apache2 服务?

design-patterns - Web/企业应用程序中最常使用哪些设计模式?

jquery - $ 未在 sugarcrm 中定义且不重复

javascript - Express 服务器和服务动态变化的值

Magento 负载平衡 - 附加许可证

eclipse - wso2ei-6.0.0无法在eclipse中启动

Mysql配色方案

按连续外键​​值分组的 MySQL 查询

mysql - 我的站点地图应该采用什么格式?