# mysql\_close

## Syntax

```c
void mysql_close(MYSQL * mysql);
```

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

## Description

Closes a previously opened connection.

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