e-mems.com
Jan 11 2008, 02:53 PM
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
Jan 11 2008, 08:10 PM
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