http://qs1969.pair.com?node_id=82226


in reply to mod_perl breaks MySQL connectivity...

port 80 for MySQL looks odd, as has already been pointed out, can you confirm that you don't change the script between runs with and without mod_perl? You also could get some useful results from invoking the script from the command line on the server - you supply any parameters after the invocation in the form
param1=value1
param2=value2
...
and end with CTRL+D
This will prove at least that your script is correct - if it is then you shouldn't really have any problems with mod_perl. A tip: don't try to do the clever persistence and reloading stuff until the basics are working.
I'm sure you know already but there is a lot of good stuff at Stas's Home Pages.

Replies are listed 'Best First'.
Re: Re: mod_perl breaks MySQL connectivity...
by DarkBlue (Sexton) on May 22, 2001 at 23:53 UTC
    This is now solved - changing "localhost" to "127.0.0.1" did the trick. I'd be interested in learning why as I thought the two were interchangeable.

    Thanks to everyone who responded for your help and advice. I really appreciate it.

     

    In theory, there is no difference between theory and practise.  But in practise, there is.
     
    Jonathan M. Hollin
    Digital-Word.com