unsigned long mysql_get_server_version(MYSQL
Returns an integer that represents the MySQL server version. The
value has the format
X is the major version,
is the release level (or minor version), and
ZZ is the sub-version within the release
major_version*10000 + release_level*100 + sub_version
"5.7.6" is returned
This function is useful in client programs for determining whether some version-specific server capability exists.
An integer that represents the MySQL server version.