mysql_get_server_info
mysql_get_server_info retrieves the connected server version string; use mysql_get_server_version for the equivalent numeric representation.
Syntax
char * mysql_get_server_info(MYSQL * mysql);Parameter
mysql- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Description
Returns the server version or NULL on failure.
Return Value
Returns the server version as zero terminated string or NULLon failure.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

