-
Notifications
You must be signed in to change notification settings - Fork 256
mysql_server_init
Georg Richter edited this page Jul 3, 2022
·
2 revisions
mysql_server_init - Initializes library
#include <mysql.h>
int mysql_library_init(int argc __attribute__((unused)),
char **argv __attribute__((unused)),
char **groups __attribute__((unused)))
Call to initialize the library before calling other functions.
All parameters are unused, they only exist for compatibility reasons.
- Call mysql_server_end() to clean up after completion.
- If the library was not explicitly initialized by
mysql_server_init()
any call to mysql_init() will automatically initialize the library. -
mysql_library_init()
is an alias formysql_server_init()
Returns zero for success, or nonzero if an error occurred.
MariaDB Connector/C Reference