# mysql\_get\_server\_info

## Syntax

```c
const char * mysql_get_server_info(MYSQL * mysql);
```

* `mysql` - a mysql handle, which was previously allocated by [mysql\_init()](mysql_init) or [mysql\_real\_connect()](mysql_real_connect).

## Description

Returns the server version or NULL on failure.

{% hint style="info" %}
To obtain the numeric server version please use [mysql\_get\_server\_version()](mysql_get_server_version).
{% endhint %}

## See also

* [mysql\_get\_server\_version()](mysql_get_server_version)
* [mysql\_get\_client\_info()](mysql_get_client_info)

{% @marketo/form formId="4316" %}
