User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:mysql:mysql.h:mysql_get_client_version

mysql_get_client_version

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_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;
}

output of mysql_get_client_version c example

  client version: 50529

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/mysql/mysql.h/mysql_get_client_version.txt · Last modified: 2024/02/16 01:12 (external edit)

Impressum Datenschutz