MySQL 9.5 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_server_init()
intmysql_server_init(int argc, char **argv, char **groups) This function initializes the MySQL client library, which must be done before you call any other MySQL function. However,mysql_server_init() is deprecated and you should callmysql_library_init() instead. SeeSection 5.4.45, “mysql_library_init()”.
Note
To avoid memory leaks after the application is done using the library (for example, after closing the connection to the server), be sure to callmysql_server_end() (ormysql_library_end()) explicitly. This enables memory managment to be performed to clean up and free resources used by the library. SeeSection 5.4.44, “mysql_library_end()”.