mysql_get_host_info — Returns host information

const char * mysql_get_host_info(MYSQL * mysql);

Describes the type of connection in use for the connection, including the server host name.

Parameters

mysql

A mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().

Return value

Returns a string describing the type of MariaDB connection in use for the connection or NULL if the connection is not valid.

See also

mysql_get_server_version()