-
Notifications
You must be signed in to change notification settings - Fork 256
mariadb_connection
Georg Richter edited this page Feb 14, 2019
·
2 revisions
mariadb_connection - checks if the client is connected to a MariaDB database server
#include <mysql.h>
my_bool mariadb_connection(MYSQL * mysql);
Checks if the client is connected to a MariaDB or MySQL database server.
mysql
- mysql handle, which was previously allocated by mysql_init() and connected by mysql_real_connect().
Returns a non zero value if connected to a MariaDB database server, otherwise zero.
MariaDB Connector/C Reference