Home  >  Article  >  Backend Development  >  mysql_get_server_info() function

mysql_get_server_info() function

WBOY
WBOYOriginal
2016-07-25 08:44:071559browse

The mysql_get_server_info() function is a built-in system function in PHP.

mysql_get_server_info() function returns MySQL server information.

If successful, it returns the version number of the MySQL server, if it fails, it returns false.
Syntax: mysql_get_server_info(connection)

Parameter: connection optional. Specifies the MySQL connection. If not specified, the previous connection is used.

  1. $con = mysql_connect("localhost", "hello", "321");
  2. echo "MySQL server info: " . mysql_get_server_info($con);
  3. ?>
Copy code
mysql


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn