MYSQL *mysql_init(MYSQL *mysql)
Allocates or initializes a
mysql is a
the function allocates, initializes, and returns a new object.
Otherwise, the object is initialized and the address of the
object is returned. If
mysql_init() allocates a new
object, it is freed when
mysql_close() is called to
close the connection.
In a nonmulti-threaded environment,
automatically as necessary. However,
mysql_library_init() is not
thread-safe in a multi-threaded environment, and thus neither
prior to spawning any threads, or use a mutex to protect the
This should be done prior to any other client library call.
NULL if there was insufficient memory to
allocate a new object.