Discuz! info: Can not connect to MySQL server

2007-10-15 4:25 am
Discuz! info: Can not connect to MySQL server

Time: 2007-10-14 12:21pm
Script: /index.php

Error: Access denied for user 'dbuser'@'localhost' (using password: YES)
Errno.: 1045

Similar error report has beed dispatched to administrator before.
請看有什麼錯?
config.inc.php 內容:
更新1:

http://www.badongo.com/file/4708742

回答 (2)

2007-10-15 4:36 am
✔ 最佳答案
如果的 database name , user name 及 password 沒有錯的話

就要檢查一下, MySQL 及 discuz 的 connection link 有冇錯

For Example,
係 discuz 的 set up page, 不要直接打 "localhost"
改為 "MySQL Host: localhost:/tmp/mysql5.sock"


Local (web applications): Host: localhost | Socket: /tmp/mysql5.sock
Note: Most PHP applications/scripts will accept the following syntax:
MySQL Host: localhost:/tmp/mysql5.sock

p.s. 點解我會知, 因為我都試過囉
參考: 自己經驗
2007-10-15 6:54 pm
你個password唔岩啊。
參考: 自己


收錄日期: 2021-05-03 06:51:59
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071014000051KK05125

檢視 Wayback Machine 備份