Thanks! It's working perfectly on port 5432 (I use Postgres) Thanks to everybody, you've been very helpful!
Pierre ---------- Original Message ----------- From: Joe Raube <[EMAIL PROTECTED]> To: Pierre Leblanc <[EMAIL PROTECTED]> Sent: Tue, 18 Feb 2003 09:45:58 -0800 (PST) Subject: Re: Need help! > The database wouldn't run on port 80 or 81 - the web server does! > > You need to connect to the port that the database is listening on. > > For mysql its 3306 > For postgres its 5432 > > -Joe > > --- Pierre Leblanc <[EMAIL PROTECTED]> wrote: > > > > I've tried with port 80, the effect is different. After about 30 > > seconds, the > > script stops and the following error appears in the log: > > > > Apache/1.3.9 (Unix) mod_perl/1.22 configured -- resuming normal > > operations > > DBI->connect(dbname=aiwar;host=205.205.189.1;port=80) failed: > > server closed > > the connection unexpectedly at > > /usr/local/lib/perl5/site_perl/5.005/lci.pm > > line 41 > > couldn't connect: server closed the connection unexpectedly > > at /usr/local/lib/perl5/site_perl/5.005/lci.pm line 41. > > > > Any suggestions? > > > > Pierre > > > > > > ---------- Original Message ----------- > > From: Joe Raube <[EMAIL PROTECTED]> > > To: Pierre Leblanc <[EMAIL PROTECTED]> > > Sent: Tue, 18 Feb 2003 09:12:16 -0800 (PST) > > Subject: Re: Need help! > > > > > > But this one doesn't work for a remote database: > > > > > > > > my ($dbname) = "aiwar;host=205.205.189.1;port=81"; > > > > > > Is the remote database configured to listen on port 81? > > > > > > The 'connection refused' error that you received makes me think > > not. > > ------- End of Original Message ------- > > ------- End of Original Message -------
