The string and numeric forms of the MySQL server version are
available at compile time as the values of the
MYSQL_SERVER_VERSION and
MYSQL_VERSION_ID macros, and at runtime as
the values of the
mysql_get_server_info() and
mysql_get_server_version()
functions.
The client library version is the MySQL version. For
Connector/C, this is the MySQL version on which the Connector/C
distribution is based. The string and numeric forms of this
version are available at compile time as the values of the
MYSQL_SERVER_VERSION and
MYSQL_VERSION_ID macros, and at runtime as
the values of the
mysql_get_client_info() and
mysql_get_client_version()
functions.