This topic is locked

DB connection failed

8/14/2006 2:23:36 PM
PHPRunner General questions
A
amirgulamali author

Hi,
I had been testing my php pages with a DB on my webserver that wasnt pasasword protected. Everything worked well....
Now I changed the connection of the PHPRunner project to another database on my webserver that is password protected so that nobody can see my SQL table structures.. however now I cannot login using the PHP pages... the login page loads but upon entering the username and password for php users..
I am getting the following error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'eccs_user@130.113.74.191' (Using password: YES) in /var/www/html/ecs/DB3/include/dbconnection.php on line 9
Fatal error: Access denied for user: 'eccs_user@130.113.74.191' (Using password: YES) in /var/www/html/ecs/DB3/include/dbconnection.php on line 12

I just dont get it.. why am i getting this error..
Also when i try to register with this site.. i see the following on the register page...
**Register

REGISTER_USERINFOFIELDS## ##PASSWORDFIELD## Password:

Re-enter password: ##/PASSWORDFIELD## ##NOTPASSWORDFIELD## : ##/NOTPASSWORDFIELD##

/REGISTER_USERINFOFIELDS##

Back to login page
**
Thanks

A
amirgulamali author 8/14/2006

When I run the php site on my (with the db that is NOT protected) - everything works well

When I run the php site on my [color=#CC0000]webserver (with the db that is protected) - i get that error

When I run the php site on my localhost (with the db that is protected) - everything works well
Both databases (protected as well as not protected) are on my webserver
My webserver has the following specs:



Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.8.91mdk) mod_perl/1.99_08 Perl/v5.8.0 auth_external/2.2.1 auth_mysql/1.11 mod_auth_pgsql/2.0.0 auth_radius/1.7PR1 mod_layout/4.0.1a mod_ssl/2.0.47 OpenSSL/0.9.7a DAV/2 PHP/4.3.1 mod_auth_remote/1.0 mod_auth_shadow/2.0

pls help

Alexey admin 8/15/2006

Amir,
answered to your personal email.