aneliya Posted March 3, 2013 Posted March 3, 2013 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!
Guest Posted March 3, 2013 Posted March 3, 2013 @@aneliya You need to update the database settings found in: /includes/configure.php /admin/includes/configure.php Chris
aneliya Posted March 4, 2013 Author Posted March 4, 2013 Thank you! The admin panel is done but the site still is error.
Guest Posted March 4, 2013 Posted March 4, 2013 @@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
aneliya Posted March 6, 2013 Author Posted March 6, 2013 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'); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.