mysql\_get\_client\_version(3) MariaDB Connector/C mysql\_get\_client\_version(3)

## [Name](#Name)

mysql\_get\_client\_version - returns client version number

## [Synopsis](#Synopsis)

```
unsigned long mysql_get_client_version(void);
    
```

## [Description](#Description)

Returns a number representing the client library version. The value has the format XXYYZZ: major version * 10000 + minor version * 100 + patch version. ### Notes * To obtain a string containing the client library version use the [**mysql\_get\_client\_info(3)**](/man/os/mariadb-12.3/mysql_get_client_info.3) function. * Note: Since MariaDB Server 10.2.6 and MariaDB Connector/C 3.0.1 the client library is bundled with server package and returns the server package version. To obtain the client version of the connector, please use the constant MARIADB\_PACKAGE\_VERSION\_ID

## [Return value](#Return_value)

A long integer representing the client version

## [See also](#See_also)

•

[**mysql\_get\_client\_info(3)**](/man/os/mariadb-12.3/mysql_get_client_info.3)

Version 3.4

---

Document: mysql_get_client_version(3) from mariadb-12.3 12.3.3-r2 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
