OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Changed Admin Paasword and now PROBLEMS
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > General Support
e-mems.com
I'm trying to change the admin password for a new clients site, so I'm a little new to this. But I changed the password exactly like below and now when I try go to www.webaddress.com/oscommerce/admin I get this message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'webaddress01@web50.pearlriver.easycgi.com' (Using password: YES) in c:\websites\webaddress100\webaddress.com\oscommerce\admin\includes\functions\database.php on line 19
Unable to connect to database server!

How can I fix this?

// Open /admin/includes/configure.php and add the following code in
// define admin user/password
define('ADMIN_USERNAME', 'admin'); <-- I changed this to my user name
define('ADMIN_PASSWORD', 'mypasword'); <-- I changed this to my password
geoffreywalton
Bit confused here.

The error message relates to connecting to your mysql database.

Could you connect before you changed the password?

Check your admin/configure/configure.php

Are the values round

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'xxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxxx');
define('DB_DATABASE', 'oscommerce_50');
define('USE_PCONNECT', 'true'); // use persisstent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

all valid?

Move

// Open /admin/includes/configure.php and add the following code in
// define admin user/password
define('ADMIN_USERNAME', 'admin'); <-- I changed this to my user name
define('ADMIN_PASSWORD', 'mypasword'); <-- I changed this to my password

to the end of the file.

Consider using local host rather than web50.pearlriver.easycgi.com
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.