PHP mysqli_dump_debug_info() function is used to dump debugging information into the log for the MySQL Server relating to the connection.
Syntax
bool mysqli_dump_debug_info(connection);
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
Return Values : | Returns TRUE on success or FALSE on failure. |
<?php $con = mysqli_dump_debug_infot("localhost","user","password","db"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysqli_dump_debug_info($con); mysqli_close($con); ?>