Perl DBI and remote host connections

James McDonald james
Wed Nov 10 17:42:32 PST 2004


David Bandel wrote:

>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
>  
>
The remote database is configured to allow remote connections yes? I 
noticed pgsql and mysql sometimes come with the remote connection stuff 
disabled is Sybase the same?



More information about the Linux-users mailing list