Current Location: Home> Function Categories> mysql_get_client_info

mysql_get_client_info

Obtain MySQL client information.
Name:mysql_get_client_info
Category:Uncategorized
Programming Language:php
One-line Description:Return information about the current MySQL client library version

Function name: mysql_get_client_info()

Applicable version: PHP 4 >= 4.0.5, PHP 5, PHP 7

Function description: The mysql_get_client_info() function returns information about the current MySQL client library version.

usage:

 string mysql_get_client_info ( void )

Parameters: This function does not accept any parameters.

Return value: Returns a string representing the version information of the current MySQL client library.

Example:

 $mysqlClientInfo = mysql_get_client_info(); echo "MySQL Client Library 版本:".$mysqlClientInfo;

Output:

 MySQL Client Library 版本:5.6.40

Notes:

  • The mysql_get_client_info() function has been deprecated after PHP version 5.5.0 and is not recommended for use in new projects. It is recommended to use the mysqli or PDO_MySQL extension instead.
  • This function only returns version information for the MySQL client library, not the version information for the database server. If you need to obtain the version information of the database server, you can use the mysql_get_server_info() function.
  • After PHP 7.0.0, the mysql_get_client_info() function has been removed and is no longer available. In PHP 7, it is recommended to use the mysqli_get_client_info() function to obtain the version information of the MySQL client library.
Similar Functions
Popular Articles