i transfer the the script to another computer to view the my shop on xampp localhost all the images and the links appeared but if i want to buy once i click on the links i got this message :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'opencart'@'localhost' (using password: YES) in C:\xampp\htdocs\system\database\mysql.php on line 6
Error: Could not make a database connection using opencart@localhost
Warning: mysql_close() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\database\mysql.php on line 66
please i need help as soon as possible.
i transfer the the script to another computer to view the my shop on xampp localhost all the images and the links appeared but if i want to buy once i click on the links i got this message :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'opencart'@'localhost' (using password: YES) in C:\xampp\htdocs\system\database\mysql.php on line 6
Error: Could not make a database connection using opencart@localhost
Warning: mysql_close() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\database\mysql.php on line 66
please i need help as soon as possible.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'opencart'@'localhost' (using password: YES) in C:\xampp\htdocs\system\database\mysql.php on line 6
Error: Could not make a database connection using opencart@localhost
Warning: mysql_close() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\system\database\mysql.php on line 66
please i need help as soon as possible.
i have try to update the config file its say the name (pharmacy folder cannot be found , let me paste the config file here so u can write how it surpose to look like when am moving it to another computer, becos am still new in programming.the folder name is (pharmacy ) this is the config file below :
<?php
// DIR
define('DIR_APPLICATION', 'C:\xampp\htdocs/catalog/');
define('DIR_SYSTEM', 'C:\xampp\htdocs/system/');
define('DIR_DATABASE', 'C:\xampp\htdocs/system/database/');
define('DIR_LANGUAGE', 'C:\xampp\htdocs/catalog/language/');
define('DIR_TEMPLATE', 'C:\xampp\htdocs/catalog/view/theme/');
define('DIR_CONFIG', 'C:\xampp\htdocs/system/config/');
define('DIR_IMAGE', 'C:\xampp\htdocs/image/');
define('DIR_CACHE', 'C:\xampp\htdocs/system/cache/');
define('DIR_DOWNLOAD', 'C:\xampp\htdocs/download/');
define('DIR_LOGS', 'C:\xampp\htdocs/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'opencart');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('DB_PREFIX', '');
?>
Admin config file below :
<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/admin/');
define('HTTP_CATALOG', 'http://localhost/');
define('HTTP_IMAGE', 'http://localhost/image/');
// HTTPS
define('HTTPS_SERVER', 'http://localhost/admin/');
define('HTTPS_IMAGE', 'http://localhost/image/');
// DIR
define('DIR_APPLICATION', 'C:\xampp\htdocs/admin/');
define('DIR_SYSTEM', 'C:\xampp\htdocs/system/');
define('DIR_DATABASE', 'C:\xampp\htdocs/system/database/');
define('DIR_LANGUAGE', 'C:\xampp\htdocs/admin/language/');
define('DIR_TEMPLATE', 'C:\xampp\htdocs/admin/view/template/');
define('DIR_CONFIG', 'C:\xampp\htdocs/system/config/');
define('DIR_IMAGE', 'C:\xampp\htdocs/image/');
define('DIR_CACHE', 'C:\xampp\htdocs/system/cache/');
define('DIR_DOWNLOAD', 'C:\xampp\htdocs/download/');
define('DIR_LOGS', 'C:\xampp\htdocs/system/logs/');
define('DIR_CATALOG', 'C:\xampp\htdocs/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'opencart');
define('DB_PASSWORD', '***');
define('DB_DATABASE', '***');
define('DB_PREFIX', '');
?>
<?php
// DIR
define('DIR_APPLICATION', 'C:\xampp\htdocs/catalog/');
define('DIR_SYSTEM', 'C:\xampp\htdocs/system/');
define('DIR_DATABASE', 'C:\xampp\htdocs/system/database/');
define('DIR_LANGUAGE', 'C:\xampp\htdocs/catalog/language/');
define('DIR_TEMPLATE', 'C:\xampp\htdocs/catalog/view/theme/');
define('DIR_CONFIG', 'C:\xampp\htdocs/system/config/');
define('DIR_IMAGE', 'C:\xampp\htdocs/image/');
define('DIR_CACHE', 'C:\xampp\htdocs/system/cache/');
define('DIR_DOWNLOAD', 'C:\xampp\htdocs/download/');
define('DIR_LOGS', 'C:\xampp\htdocs/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'opencart');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('DB_PREFIX', '');
?>
Admin config file below :
<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/admin/');
define('HTTP_CATALOG', 'http://localhost/');
define('HTTP_IMAGE', 'http://localhost/image/');
// HTTPS
define('HTTPS_SERVER', 'http://localhost/admin/');
define('HTTPS_IMAGE', 'http://localhost/image/');
// DIR
define('DIR_APPLICATION', 'C:\xampp\htdocs/admin/');
define('DIR_SYSTEM', 'C:\xampp\htdocs/system/');
define('DIR_DATABASE', 'C:\xampp\htdocs/system/database/');
define('DIR_LANGUAGE', 'C:\xampp\htdocs/admin/language/');
define('DIR_TEMPLATE', 'C:\xampp\htdocs/admin/view/template/');
define('DIR_CONFIG', 'C:\xampp\htdocs/system/config/');
define('DIR_IMAGE', 'C:\xampp\htdocs/image/');
define('DIR_CACHE', 'C:\xampp\htdocs/system/cache/');
define('DIR_DOWNLOAD', 'C:\xampp\htdocs/download/');
define('DIR_LOGS', 'C:\xampp\htdocs/system/logs/');
define('DIR_CATALOG', 'C:\xampp\htdocs/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'opencart');
define('DB_PASSWORD', '***');
define('DB_DATABASE', '***');
define('DB_PREFIX', '');
?>
Last edited by i2Paq on Wed Feb 09, 2011 12:41 am, edited 1 time in total.
Reason: Removed usrname & psswrd
Reason: Removed usrname & psswrd
dear all,
in this error case "opencart access denied for user @'localhost' (using password yes)" even we have entered others users with password included but still generate error
plis try my own try ..
fill the username full means hosting name included as shown in phpMyadmin user name, so the syntax will be like:
1. hostname_username
2. hostname_database
hope this "try" is useful to all
tks
in this error case "opencart access denied for user @'localhost' (using password yes)" even we have entered others users with password included but still generate error
plis try my own try ..
fill the username full means hosting name included as shown in phpMyadmin user name, so the syntax will be like:
1. hostname_username
2. hostname_database
hope this "try" is useful to all
tks
Who is online
Users browsing this forum: No registered users and 69 guests