How PHP Gets the information mysql_get_host_info the MySQL host

Source: Internet
Author: User
Tags mysql host

Definitions and usage
The Mysql_get_host_info () function gets a host about MySQL.

This function returns the type of MySQL connection that is currently in use, or false fails.

Grammar

Mysql_get_host_info ($connection)
  
  
  

Parameter description
$connection: Optional. Specifies the MySQL connection. If not specified, the final connection opening mysql_connect ()

Or the use of Mysql_pconnect ().

Take a look at a mysql_get_host_info instance.

<?php
$con = mysql_connect ("localhost", "Peter", "abc123");
echo "MySQL host info:". Mysql_get_host_info ($con);
? >


   
   
   
The output information is.


   
   
   
MySQL host Info:localhost via TCP/IP
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.