You can call my_init() to initialize the global variables that OceanBase Database needs.
Syntax
void
my_init(void)
Return values
None.
Notes
my_init() must be called early in the initialization phase of the OceanBase library. my_init() is automatically called by mysql_init(), mysql_library_init(), mysql_server_init(), and mysql_connect(). If one of those functions has been called, you do not need to call my_init().
The header files of the my_init() function are:
#include <my_global.h>
#include <my_sys.h>