You are here : cpp0mysql_get_server_version

mysql_get_server_version() - 0

 Returns an integer that represents the MySQL server 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"50716This function is useful in client programs for determining
        whether some version-specific server capability exists.


Syntax

unsigned long mysql_get_server_version(MYSQL
        *mysql)


Example

major_version*10000 + release_level*100 + sub_version


Output / Return Value

 An integer that represents the MySQL server version.


Limitations


Alternatives / See Also


Reference