---
name: "mysql_server_end"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mysql_server_end"
---

# mysql\_server\_end(3)

### Name

mysql\_server\_end - Called when finished using MariaDB Connector/C

### Synopsis

-

  ```
  #include <mysql.h>
  void mysql_server_end(void)
  ```

### Description

Call when finished using the library, such as after disconnecting from the server. For a client program, only cleans up by performing memory management tasks.

### Notes

- •

  `mysql_library_end()` is an alias for `mysql_server_end()`.

- •

  In MySQL Connector/C versions 3.0.1 to 3.0.4 it was not possible to call multiple times **[mysql\_server\_init(3)](/mysql_server_init/3.md)** and `mysql_server_end()`.

### See also

- •

  **[mysql\_server\_init(3)](/mysql_server_init/3.md)**
