"Francesco Del Vecchio" <[EMAIL PROTECTED]> wrote: > I wrote a small program accessing a Mysql database. > > All works fine when I run it from shell, but when I try to use it as CGI using > apache 2.0 I'm > having this kind of trouble: > > when he access to the database, looks like he append to the user name the > domain...so if all works > properly from shell with the user 'ADMIN' the access is denied to the user '[EMAIL > PROTECTED]' that > the CGI is trying to use to connect to the DB.
Hi Frank. It looks like your script may be using the username intended for access to the the host, not the one used to access the database. The string '[EMAIL PROTECTED]' is a host name with a username included, and can be used in a URL: http://[EMAIL PROTECTED]/cgi-bin/script.pl so I wonder if somehow you're using the string in the wrong context. Are you fetching the username from the evironment variables provided by Apache? We can only speculate as to what your problem may be until we know a little more about your script. Can you post an extract of what you think is the relevant area? Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]