in reply to Re: Re: perl db connection problems
in thread perl db connection problems
It would help to show some code and the exact error message (by all means s/real_username/username/ s/real_password/password/ s/real_ip/x.x.x.x/ etc). The actual error message in all its exacting detail is typically relevant. Do you actually get '***', .... ? When a script runs on the command line (as user you presumbably, IP ? localhost) you need to understand that under CGI it probably runs as user ? apache ? nobody, IP ? real_ip. In other words the environment is different. It seems as though you are connecting to a remote DB which will have in it a remote access perms table that might look like:
user perms you@somewhere * you@% *
That's fine when you try to connect but not so good when apache@perhaps_some_other_ip tries to connect. If that is not the problem you also possibly have a firewall between you and the remote DB. DBs connect on unusual ports, and you can punch holes through firewalls on a global or per user basis.....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: perl db connection problems
by foobarbaz (Initiate) on Sep 17, 2003 at 14:58 UTC | |
by tachyon (Chancellor) on Sep 17, 2003 at 15:20 UTC | |
by foobarbaz (Initiate) on Sep 18, 2003 at 12:47 UTC | |
by tachyon (Chancellor) on Sep 18, 2003 at 13:51 UTC |