Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 47.6Mb
PDF (A4) - 47.7Mb
PDF (RPM) - 43.1Mb
HTML Download (TGZ) - 10.9Mb
HTML Download (Zip) - 11.0Mb
HTML Download (RPM) - 9.5Mb
Man Pages (TGZ) - 233.8Kb
Man Pages (Zip) - 338.8Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  /  ...  /  mysql_get_client_version()

28.6.6.28 mysql_get_client_version()

unsigned long mysql_get_client_version(void)

Description

Returns an integer that represents the MySQL client library version. The value has the format XYYZZ where X is the major version, YY is the release level (or minor version), and ZZ is the sub-version within the release level:

major_version*10000 + release_level*100 + sub_version

For example, "8.0.21" is returned as 80021.

The function value is the version of MySQL that provides the client library. For more information, see Section 28.6.3.5, “C API Server Version and Client Library Version”.

Return Values

An integer that represents the MySQL client library version.

Errors

None.