mysql_init — Initialize a connection
MYSQL * mysql_init(MYSQL * mysql);
Prepares and initializes a MYSQL structure to be used with mysql_real_connect()
.
If mysql_thread_init()
was not called before, mysql_init()
will also initialize the thread subsystem for the current thread.
mysql
A pointer to MYSQL or NULL. In case of passing a NULL pointer mysql_init()
will allocate memory and return a pointer to a MYSQL structure.