Jump to content

MySQL Connection Details


The Letter E

Recommended Posts

Perhaps this is a rather lay question, but, is there a way to gather specific connection details about an open MySQL connection in php?

 

Example:

<?php
    $connect = mysql_connect('localhost', 'username', 'password');
?>

Using the $connect variable, could I run a command that dumps the host, and username to a log file??

 

Thanks in advance, I'm still searching.

 

E

Link to comment
https://forums.phpfreaks.com/topic/232379-mysql-connection-details/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.