mysql_init()

This initializes a MYSQL object that can be used in theĀ mysql_real_connect() method. Here is its syntax:

MYSQL *mysql_init(MYSQL *object)

If the object parameter that's passed is NULL, then the function initializes and returns a new object; otherwise, the supplied object is initialized and the address of the object is returned.