Documentation Home
MySQL 9.4 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.4Mb
PDF (A4) - 1.4Mb


MySQL 9.4 C API Developer Guide  / ...  / Writing C API-Based Client Applications  / Using C API Features  /  Obtaining the Server Version and Client Library Version

3.6.12 Obtaining the Server Version and Client Library Version

The string and numeric forms of the MySQL server version are available at compile time as the values of theMYSQL_SERVER_VERSION andMYSQL_VERSION_ID macros, and at runtime as the values of themysql_get_server_info() andmysql_get_server_version() functions.

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 theMYSQL_SERVER_VERSION andMYSQL_VERSION_ID macros, and at runtime as the values of themysql_get_client_info() andmysql_get_client_version() functions.