我们正在升级我们的服务器,我被问及我们目前的mysql版本(因为我们希望保持相同的类型,只需升级版本)。我需要知道我安装了哪个版本。这是我运行SHOW VARIABLES;
时得到的信息
protocol_version 10
version 5.0.67
version_comment SUSE MySQL RPM
version_compile_machine x86_64
version_compile_os suse-linux-gnu
我还在变量中找到了许可,上面写着GPL
发布于 2017-08-10 13:49:04
通常,version
和version_comment
都有这些信息,STATUS
命令也会在Server version:
中显示它们。
Server version: 5.0.67-standard MySQL Community Edition - Standard (GPL)
但是,您使用的是来自SUSE RPM
存储库的版本;它是社区版。
您可以使用(shell,而不是SQL)命令rpm -q mysql
来检查它。包的名称可能实际上包含mysqlXX-community-release-...
来确认这一点。
发布于 2017-08-10 12:38:09
如果你只是安装它没有任何付款和合同,你有社区版本。如果你和mysql或甲骨文有一些合同,看看那些文件,你就会看到它。有关mysql版本的更多信息可以在https://www.mysql.com/products/上找到。
发布于 2022-05-24 18:48:50
我也吃过同样的豆瓣。
mysql> show global variables like '%version%';
+-------------------------+----------------+
| Variable_name | Value |
+-------------------------+----------------+
| protocol_version | 10 |
| version | 5.0.26 |
| version_comment | SUSE MySQL RPM |
| version_compile_machine | x86_64 |
| version_compile_os | suse-linux |
+-------------------------+----------------+
5 rows in set (0.00 sec)
mysql>
license
变量似乎回答了我们的问题:
mysql> show global variables like '%license%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| license | GPL |
+---------------+-------+
1 row in set (0.00 sec)
在我所知道的其他环境中是企业,它显示商业。
mysql> show global variables like '%license%';
+---------------+------------+
| Variable_name | Value |
+---------------+------------+
| license | Commercial |
+---------------+------------+
1 row in set (0.01 sec)
https://serverfault.com/questions/867947
复制相似问题