mysql_server_init(3)

mysql_server_init3

Name

mysql_server_init - Initializes library

Synopsis

#include <mysql.h>
int mysql_library_init(int argc __attribute__((unused)),
                       char **argv __attribute__((unused)),
                       char **groups __attribute__((unused)))

Description

Call to initialize the library before calling other functions.

Parameters

All parameters are unused, they only exist for compatibility reasons.

Notes

•

Call mysql_server_end(3) to clean up after completion.

•

If the library was not explicitly initialized by mysql_server_init() any call to mysql_init(3) will automatically initialize the library.

•

mysql_library_init() is an alias for mysql_server_init()

Return value

Returns zero for success, or nonzero if an error occurred. ## See also * mysql_server_end(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.