mysql_close(3)

mysql_close3

Name

mysql_close - Closes a previously opened connection

Synopsis

#include <mysql.h>
void mysql_close(MYSQL *mysql);

Description

Closes a previously opened connection and deallocates all memory.

Notes

•

To reuse a connection handle after mysql_close() the handle must be initialized again by mysql_init(3).

See also

•

mysql_init(3)

•

mysql_real_connect(3)

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13–Arch

From mariadb 13.0.2-2 in Arch Linux 2026-11-01. Also shipped by mariadb-lts. Parsed by carta from the page's man source.