Documentation Home
MySQL 8.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 39.8Mb
PDF (A4) - 39.9Mb
Man Pages (TGZ) - 257.9Kb
Man Pages (Zip) - 364.9Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 8.4 Reference Manual  /  ...  /  MySQL Configuration and Third-Party Tools

2.8.9 MySQL 配置和第三方工具

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.3.0, the file looks like this:

MYSQL_VERSION_MAJOR=8
MYSQL_VERSION_MINOR=3
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