# mysql\_get\_proto\_info

## Syntax

```c
unsigned int mysql_get_proto_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 protocol version number for the specified connection

{% hint style="info" %}
The client library doesn't support protocol version 9 and prior.
{% endhint %}

## See also

* [mysql\_get\_host\_info()](mysql_get_host_info)

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