in reply to DBI & setsockopt
Hmmm ... the Mysql module can do this:
Database Handle
As said above you get a database handle with the connect() method.
The database handle knows about the socket, the host, and the
database it is connected to.
You get at the three values with the methods
$scalar = $dbh->sock;
$scalar = $dbh->host
$scalar = $dbh->database;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI & setsockopt
by fhew (Beadle) on Nov 23, 2005 at 14:12 UTC | |
by derby (Abbot) on Nov 23, 2005 at 15:17 UTC |