Name

mysql_get_server_info

Synopsis

char *mysql_get_server_info(MYSQL *mysql)

Returns a string with the version number of the MySQL database server used by the current connection.

Example

printf("You are currently connection to MySQL server version %s\n",
        mysql_get_server_info(&mysql);

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.