mysql_close

Prototypes

void mysql_close(MYSQL *sock);

Description

Ferme la connexion sock.

Exemple

#include <mysql.h>

static MYSQL *hConnexion;
...
hConnexion=mysql_init();
if (!hConnexion) ...
if (mysql_real_connect(hConnexion, "aix", "scott", "tiger", "mysql_aix", 0, NULL, (unsigned long)(CLIENT_MULTI_STATEMENTS|CLIENT_MULTI_RESULTS))) ...
mysql_close(hConnexion);
...

Voir aussi

mysql_real_connect pour se connecter. mysql_close pour se déconnecter.