MySQL 8.4 Release Notes
需要从 MySQL 源确定 MySQL 版本的第三方工具可以读取顶级源目录中的MYSQL_VERSION文件。该文件分别列出了版本的各个部分。例如,如果版本是 MySQL 8.4.0,则文件如下所示:Third-party tools that need to determine the MySQL version from
the MySQL source can read the MYSQL_VERSION
file in the top-level source directory. The file lists the pieces
of the version separately. For example, if the version is MySQL
8.4.0, the file looks like this:
MYSQL_VERSION_MAJOR=8 MYSQL_VERSION_MINOR=4 MYSQL_VERSION_PATCH=0 MYSQL_VERSION_EXTRA="INNOVATION"
要从版本组件构造五位数字,请使用以下公式:To construct a five-digit number from the version components, use this formula:
MYSQL_VERSION_MAJOR*10000 + MYSQL_VERSION_MINOR*100 + MYSQL_VERSION_PATCH