Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > DBI - get hostname?

Reply
Thread Tools

DBI - get hostname?

 
 
Gerhard Haslberger
Guest
Posts: n/a
 
      06-14-2009
hi,
i want to know any Info (at least the hostname) of my dbi-connection?

Is that possible?
I cant find any informations at the docu?

Why?
I have 2 (1 read/write and 1 read-only) and i want to write seperate
logfiles for any of them so i want to use the hostname for that.

Ideas?
Thanks!
 
Reply With Quote
 
 
 
 
Gerhard Haslberger
Guest
Posts: n/a
 
      06-14-2009
found it myself

$db->get_info(13) = Localhost via UNIX socket
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DBI Mysql storing DBI:binary, trouble with character 26 Jerome Hauss Ruby 0 10-13-2004 03:04 PM
DBI and DBI::Oracle packages configuration ulloa Perl 1 07-22-2004 05:52 PM
DBI problem : How can I load quickly one huge table with DBI ??. Tim Haynes Perl Misc 3 09-13-2003 03:43 AM
Mason, DBI, and DBI::Pg Asby Perl Misc 0 07-24-2003 09:04 PM



Advertisments