Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem after change of password


aneliya

Recommended Posts

Posted

I can't open the site after change ot password of the host.

 

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/yoursofi/public_html/includes/functions/database.php on line 44

-

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

 

and error of the admin panel of the osCommerce:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'yoursofi'@'localhost' (using password: YES) in /home/yoursofi/public_html/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

Where do I need to make change? This is the first time of this error. Why? I can't use my shop.

 

Thanks!

Posted

@@aneliya

 

You need to update the database settings found in:

 

/includes/configure.php

/admin/includes/configure.php

 

 

Chris

Posted

@@aneliya

 

There are TWO configure files that need to be edited to reflect the new password.

 

[catalog]/includes/configure.php

[catalog]/admin/includes/configure.php

 

 

 

 

Chris

Posted

I edited and two files but only admin is ok.

Please check the include/configure.php

<?php

define('HTTP_SERVER', 'http://www.yoursofia.com');

define('HTTP_CATALOG_SERVER', 'http://www.yoursofia.com');

define('HTTPS_CATALOG_SERVER', 'https://www.yoursofia.com');

define('ENABLE_SSL_CATALOG', 'false');

 

 

define('HTTP_COOKIE_DOMAIN', 'www.yoursofia.com');

define('HTTPS_COOKIE_DOMAIN', 'www.yoursofia.com');

define('HTTP_COOKIE_PATH', '/shop/catalog/');

define('HTTPS_COOKIE_PATH', '/shop/catalog/');

define('DIR_WS_HTTP_CATALOG', '/shop/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/shop/catalog/');

 

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

 

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'myservername');

define('DB_SERVER_PASSWORD', 'MYNEWPASSWORd');

define('DB_DATABASE', 'MYDATABASENAME');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...