Programming Reference/Librarys
Question & Answer
Q&A is closed
This is an old revision of the document!
mysql_get_client_version returns the current version of your mysql client usualy returns the number in the following format XXYYZZ XX mainversion YY release level ZZ current version number
compile with gcc mysql_get_client_info.c -o mysql_get_client_info `mysql_config –cflags –libs` -Wall
#include <stdio.h> /* including standard library */ #include <mysql/mysql.h> int main( void ) { printf("client version: %li\n", mysql_get_client_version()); return 0; }
client version: 50529