1mysql_get_server_version(3) MariaDB Connector/C mysql_get_server_version(3)
2
3
4
5 Name
6 mysql_get_server_version - returns numeric server version
7
8 Synopsis
9 #include <mysql.h>
10
11 unsigned long mysql_get_server_version(MYSQL * mysql);
12
13 Description
14 Returns an integer representing the version of connected server.
15
16 Parameter
17 • mysql - a connection identifier, which was previously allocated by
18 mysql_init(3) and connected by mysql_real_connect(3).
19
20 Notes
21 The form of the version number is VERSION_MAJOR * 10000 + VERSION_MINOR
22 * 100 + VERSION_PATCH.
23
24 Return value
25 The version number of the connected server
26
27 See also
28 • mysql_get_server_info(3)
29
30
31
32Version 3.2.2 mysql_get_server_version(3)