rvosa has asked for the wisdom of the Perl Monks concerning the following question:
I am not entirely sure where to start solving this. I'm running MySQL Ver 12.22 Distrib 4.0.20a, for Win95/Win98 (i32), Server version: Apache/1.3.29 (Cygwin), I compiled the MySQL client under Cygwin to get the library and header files (as per the recipe at http://search.cpan.org/src/RUDY/DBD-mysql-2.9004/INSTALL.html#windows/cygwin), and perl v5.8.5 built for cygwin-thread-multi-64int. I reinstalled the latest versions for DBI and DBD::mysql today. The incantation:DBI connect('fab:127.0.0.1:3306','fab',...) failed: Can't create TCP/I +P socket (1) at /var/www/cgi-bin/fab.cgi line 180 Couldn't connect to database: Can't create TCP/IP socket (1) at /var/w +ww/cgi-bin/fab.cgi line 180.
works fine when I execute the script from the command line, but not when invoked by apache. I hope this is not bad form to ask here, because I'm worried it might be a permissions thing w.r.t. the apache process? Not sure what to do, I didn't change anything in httpd.conf? Thanks, as always.$dbh = DBI->connect("DBI:mysql:fab:127.0.0.1:3306",$user,$pass);
Edited by Chady -- converted <pre> to <code> tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI, DBD::MySQL, Apache & Cygwin
by reneeb (Chaplain) on Sep 02, 2004 at 10:29 UTC | |
by rvosa (Curate) on Sep 02, 2004 at 10:45 UTC | |
|
Re: DBI, DBD::MySQL, Apache & Cygwin
by Velaki (Chaplain) on Sep 02, 2004 at 08:17 UTC | |
by rvosa (Curate) on Sep 02, 2004 at 08:30 UTC | |
|
Re: DBI, DBD::MySQL, Apache & Cygwin
by eclecticIO (Beadle) on Sep 02, 2004 at 12:38 UTC | |
|
Re: DBI, DBD::MySQL, Apache & Cygwin
by doowah2004 (Monk) on Sep 02, 2004 at 12:43 UTC | |
by rvosa (Curate) on Sep 03, 2004 at 00:04 UTC | |
by rvosa (Curate) on Sep 03, 2004 at 02:13 UTC | |
|
Re: DBI, DBD::MySQL, Apache & Cygwin
by CountZero (Bishop) on Sep 11, 2004 at 12:57 UTC |