MySQL :: MySQL 8.4 C API Developer Guide :: 5.4.30 mysql_get_client_version() (original) (raw)
The world's most popular open source database
5.4.30 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_XXYYZZ
, whereXX
_ 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, "08.4.5"
is returned as 080405
.
The function value is the version of MySQL that provides the client library. For more information, seeSection 3.6.12, “Obtaining the Server Version and Client Library Version”.
Return Values
An integer that represents the MySQL client library version.