[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mod_perl and mysql



Apache is running as www-data.  I am not passing the username 
across any network.  I've written a perl module which resides on the 
server.  Within this module I perform the DBI connection to my golf db.  
Within this DBI->connect call I specify the user name to be passed to 
mysql.

On 21 May 2003 at 15:01, Dave Howorth wrote:

> John Basso wrote:
> > The web server is working, serves html content and
> > provides access control to the golf member portions.  The
> > problem I am having is that when my mod_perl scripts try
> > to access the database I get an "access denied - no login
> > provided" error message.
> > 
> > I have given user "nobody" access permission to the golf
> > db with no password specified.  (I assume this is ok as
> > user "nobody" cannot log into the machine).
> 
> I think MySQL is complaining about the database user name
> rather than the Linux user name, but if you're passing the
> Linux user name across as the database user name, remember
> that Apache runs as user www-data, not user nobody.
> 
> Cheers, Dave
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-user-request@lists.debian.org with a subject of
> "unsubscribe". Trouble? Contact listmaster@lists.debian.org


John Basso
Raytheon Systems Company
256-722-4125



Reply to: