Programming Reference/Librarys
Question & Answer
Q&A is closed
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_version.c -o mysql_get_client_version `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