Home > Backend Development > PHP Tutorial > mysql_get_server_info() function

mysql_get_server_info() function

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-25 08:44:07
Original
1601 people have browsed it

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template