我在我的瀏覽器得到了以下消息mysql_connect()函數:訪問被拒絕 -
An error occurred in script'/home/greentes/public_html/includes/mysql.inc.php' on line 10:
mysqli_connect() [function.mysqli-connect]: (42000/1044):
Access denied for user 'greentes_uson'@'localhost' to database 'greentes_pdfshop'
mysql.inc.php的10號線,:
$dbc = mysqli_connect(DB_HOST,DB_USER, DB_PASSWORD, DB_NAME);
什麼可能會造成這個錯誤,請?這是否足以回答這個問題?謝謝
您的訪問細節錯誤,並且/或者您從錯誤的主機連接。相當不言自明。 – 2012-02-28 20:24:31
[MySQL認證錯誤的原因:「訪問拒絕用戶xxx'@'yyy'」?](http://stackoverflow.com/questions/246296/reasons-for-mysql-authentication-error-access-denied- for-user-xxxyyy) – 2012-02-28 20:24:53
用戶提到了訪問數據庫的權限嗎?聽起來像用戶不被允許訪問 – 2012-02-28 20:24:59