Name
mysql_get_server_info —
Synopsis
char *mysql_get_server_info(MYSQL *mysql)
Returns a string containing the version number of the MySQL database server used by the current connection.
Example
printf("You are currently connected to MySQL server version %s\n", mysql_get_server_info(&mysql);
Get Managing & Using MySQL, 2nd Edition 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.