Rechercher dans le manuel MySQL
28.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_VERSIONandMYSQL_VERSION_IDmacros, and at runtime as the values of themysql_get_client_info()andmysql_get_client_version()functions.The
LIBMYSQL_VERSIONandLIBMYSQL_VERSION_IDmacros have the same values asMYSQL_SERVER_VERSIONandMYSQL_VERSION_IDand 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_VERSIONandLIBMYSQL_VERSION_IDmacros, and at runtime as the values of themysql_get_client_info()andmysql_get_client_version()functions.The
MYSQL_SERVER_VERSIONandMYSQL_VERSION_IDmacros indicate the string and numeric forms of the MySQL version on which the Connector/C distribution is based.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-c-api-server-client-versions.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.