Hi all,

 Not sure if this is the right list to ask this question but this is the best list to 
get answares so I am going to give it a shot. I am trying to connect to SQL2000 server 
from a winXP box. I keep on failing with same error, any help would be apreciated

#!PERl 
use warnings;
use strict;
use Net::MySQL;
use DBI;
$|=1;
    

my $user='xxx';
my $password = '....';
my $database = "nnsdata_ptest";
my $hostname='somehost.com;
my $port = '1444';
  

my $dsn = "host=$hostname;port=$port";
my $dbh = DBI->connect("DBI:mysql:$dsn", $user, $password);    

error: 
main::count() called too early to check prototype at C:\temp\perl\te.pl line 71.
DBI connect('host=somehost.com;port=1444','username',...) failed: Lost connection to 
MySQL server during query at C:\temp\perl\te.pl line 21



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to