delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/25/03:55:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200109250754.AAA13255@gull.mail.pas.earthlink.net>
Date: Tue, 25 Sep 2001 04:54:08 -0400
To: cygwin AT cygwin DOT com
From: dk henderson <dalehend AT yahoo DOT com>
Subject: Re: perl/dbi Can't create TCP/IP socket
X-Mailer: Opera 5.12 build 932
X-Priority: 3 (Normal)
Mime-Version: 1.0

I narrowed it down and found that perl/dbi works from the shell prompt, but not from cgi.
Not really sure how they interface and would appreciate any pointers.

thanks,
dale 

>
>I can connect to a remote mysql server via the mysql client at a
>cygwin shell prompt, but when I try from the localhost browser running
>apache 1.3.20, I get the above error msg.
>
> $dbh = DBI->connect("$data_source", "$username", "$password",
>{ RaiseError => 1, PrintError => 1, AutoCommit => 1 });
>where $data_source = DBI:mysql:<database name>:www.freesql.org:3306
>
>and <database name> is  a plain text name
>
>Is there any explanation for this?
>
>the apache httpd.conf has the same User as $username in $dbh value.
>
>thanks for any replies,
>dale



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019