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