動作

管理者改了管理者密碼但是沒有改資料庫密碼

出自 智邦小幫手

如果TWE購物車首頁出現以下畫面:

Warning: mysql_connect(): Access denied for user 'vhost7294'@'localhost' (using password: YES) in /raid/vhost/vip1111.com/www/includes/classes/adodb/drivers/adodb-mysql.inc.php on line 267

mysql error: [1045: Access denied for user 'vhost7294'@'localhost' (using password: YES)] in CONNECT(localhost, '****', '****', vhost7294)


Fatal error: mysql error: [1045: Access denied for user 'vhost7294'@'localhost' (using password: YES)] in CONNECT(localhost, '****', '****', vhost7294) in /raid/vhost/vip1111.com/www/includes/classes/adodb/adodb-errorhandler.inc.php on line 149

應該是管理者改了管理者密碼但是沒有改資料庫密碼

1. 請至 www/指定資料夾/include/configure.php 修改'DB_SERVER_PASSWORD', '123456' ' ' 改為新的管理者密碼

define('DB_SERVER_USERNAME', 'vhost7294'); define('DB_SERVER_PASSWORD', '123456'); define('DB_DATABASE', 'vhost7294'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty for default handler or set to 'mysql' ?>

2. 再至 www/指定資料夾/admin/include/configure.php 修改'DB_SERVER_PASSWORD', '123456' ' ' 改為新的管理者密碼

define('DB_SERVER_USERNAME', 'vhost7294'); define('DB_SERVER_PASSWORD', '123456'); define('DB_DATABASE', 'vhost7294'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty for default handler or set to 'mysql'

?>

兩個都修改完成後過十分鐘即可