mariadb_connection
Syntax
#include <mysql.h>
my_bool mariadb_connection(MYSQL * mysql);Parameter
mysql - mysql handle, which was previously allocated by mysql_init() and connected by mysql_real_connect().
Description
Checks if the client is connected to a MariaDB or MySQL database server.
Return Value
Returns a non zero value if connected to a MariaDB database server, otherwise zero.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

