MYSQL *mysql_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd)
20.4.3.1 Description
This function is deprecated. It is preferable to use
mysql_real_connect()
instead.
mysql_connect()
attempts to establish a connection to a MySQL
database engine running on host
. mysql_connect()
must complete
successfully before you can execute any of the other API functions, with the
exception of mysql_get_client_info()
.
The meanings of the parameters are the same as for the corresponding
parameters for mysql_real_connect()
. See the description of that
function for more information.
20.4.3.2 Return values
Same as for mysql_real_connect()
.
20.4.3.3 Errors
Same as for mysql_real_connect()
.