DBI - get hostname?

Discussion in 'Perl Misc' started by Gerhard Haslberger, Jun 14, 2009.

  1. 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!
     
    Gerhard Haslberger, Jun 14, 2009
    #1
    1. Advertising

  2. found it myself

    $db->get_info(13) = Localhost via UNIX socket
     
    Gerhard Haslberger, Jun 14, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ulloa
    Replies:
    1
    Views:
    537
    Juha Laiho
    Jul 22, 2004
  2. AWieminer
    Replies:
    0
    Views:
    758
    AWieminer
    Jul 12, 2005
  3. Jerome Hauss
    Replies:
    0
    Views:
    181
    Jerome Hauss
    Oct 13, 2004
  4. Asby

    Mason, DBI, and DBI::Pg

    Asby, Jul 24, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    185
  5. Tim Haynes
    Replies:
    3
    Views:
    148
    Ron Reidy
    Sep 13, 2003
Loading...

Share This Page