mysql_get_client_version() - mysql/mysql.h
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:XYYZZXYYZZmajor_version*10000 + release_level*100 + sub_versionFor example, "5.7.16" is returned
as 50716."5.7.16"50716As of MySQL 5.7.4 and Connector/C 6.1.3, the function value is
the version of MySQL or Connector/C that provides the client
library. Before MySQL 5.7.4 and Connector/C 6.1.3, the function
value is the MySQL version. For Connector/C, this is the MySQL
version on which the Connector/C distribution is based. For more
information, see Section 25.8.4.5, “C API Server and Client Library Versions”.Section 25.8.4.5, “C API Server and Client Library Versions”
Syntax
unsigned long mysql_get_client_version(void)
Example
major_version*10000 + release_level*100 + sub_version
Output / Return Value
An integer that represents the MySQL client library version.
Limitations
Alternatives / See Also
Reference