Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 38.0Mb
PDF (A4) - 38.0Mb
PDF (RPM) - 33.0Mb
HTML Download (TGZ) - 8.0Mb
HTML Download (Zip) - 8.1Mb
HTML Download (RPM) - 6.9Mb
Man Pages (TGZ) - 132.9Kb
Man Pages (Zip) - 189.5Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  /  ...  /  C API Server and Client Library Versions

27.7.4.5 C API Server and Client Library Versions

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 MySQL client library version depends on the type of distribution that provides the library:

  • For MySQL distributions, the client library version is the MySQL version. 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.

    The LIBMYSQL_VERSION and LIBMYSQL_VERSION_ID macros have the same values as MYSQL_SERVER_VERSION and MYSQL_VERSION_ID and the two sets of macros can be used interchangeably.

  • For Connector/C distributions, the client library version is the Connector/C version. The string and numeric forms of this version are available at compile time as the values of the LIBMYSQL_VERSION and LIBMYSQL_VERSION_ID macros, and at runtime as the values of the mysql_get_client_info() and mysql_get_client_version() functions.

    The MYSQL_SERVER_VERSION and MYSQL_VERSION_ID macros indicate the string and numeric forms of the MySQL version on which the Connector/C distribution is based.


User Comments
Sign Up Login You must be logged in to post a comment.