User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed


This is an old revision of the document!


description of mysql_get_client_version

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;

output of mysql_get_client_version c example

  client version: 50529
c/mysql/mysql.h/mysql_get_client_version.1361885726.txt · Last modified: 2013/02/26 14:35 by

Impressum Datenschutz