Perl DBI and remote host connections
David Bandel
david.bandel
Wed Nov 10 09:24:46 PST 2004
Folks,
I have done a lot of local web <--> local db work without a problem
using Perl DBI. However, this time, the db is remote. So I went
through the motions of putting in the necessary dbi parameters:
$dbh = DBI?>connect("dbi:Sybase:database=$database;host=$host;port=$port",
$username, $passwd);
I have all the variables properly defined like so:
my $host=192.168.7.59;
my $port=1433;
Using tcpdump, I get no outgoing connection attempts to the remote
server. My || die 'message' $! ; tells me no db connection (duh). Of
course not, there's not even an arp who-has looking for the remote
host.
What have I missed? Don't believe I need to include all the
networking modules, but I may be wrong.
Any takers?
TIA,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
More information about the Linux-users
mailing list