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.
In reply to DBI, DBD::MySQL, Apache & Cygwin by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |