.\" Automatically generated by Pandoc 2.5 .\" .TH "mysql_close" "3" "" "Version 3.3.1" "MariaDB Connector/C" .hy .SS Name .PP mysql_close \- Closes a previously opened connection .SS Synopsis .IP .nf \f[C] #include void mysql_close(MYSQL *mysql); \f[R] .fi .SS Description .PP Closes a previously opened connection and deallocates all memory. .SS Notes .IP \[bu] 2 To reuse a connection handle after \f[C]mysql_close()\f[R] the handle must be initialized again by \f[B]mysql_init(3)\f[R]. .SS See also .IP \[bu] 2 \f[B]mysql_init(3)\f[R] .IP \[bu] 2 \f[B]mysql_real_connect(3)\f[R]