1 頁 (共 1 頁)

[問題] phpmyadmin開啟 出現#1045錯誤

發表於 : 2005-10-02 18:27
zaoki
我已經爬過文章了,但是依然不知道如何解決,麻煩可以幫忙解決我的困擾\r
下面是動作步驟之後的問題


一開始開啟phpmyadmin

1.進入phpMyAdmin並執行「權限」
2.執行「更改密碼」
3.再至config.inc.php,更改剛剛更新的密碼\r
4.再開啟http://localhost/phpMyAdmin/index.php

就出現\r
----------------------------
phpMyAdmin 嘗試連線到 MySQL 伺服器, 但伺服器拒絕了連線. 您應於 config.inc.php 內檢查主機名稱, 登入名稱及密碼及確保這些資料是與系統管理人員所提供的 MySQL 伺服器資料相同

錯誤

MySQL 傳回:


#1045 - Access denied for user: 'xxxxx@localhost' (Using password: NO)
---------------------------



我在安裝Appserv沒有輸入帳號和密碼\r


在config.inc.php更改的內文

-------------------------
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'xxxxxxx';
-------------------------------

使用的是:
Appserv v2.40
phpMyAdmin 2.5.6

發表於 : 2005-10-02 18:38
問題狂
先用預設的帳號密碼登入\r
一般是root
然後建立一個使用者給予所有的最高權限然後再試試看可不可以登入

發表於 : 2005-10-02 22:33
zaoki
問題狂 寫:先用預設的帳號密碼登入\r
一般是root
然後建立一個使用者給予所有的最高權限然後再試試看可不可以登入
預設的話,原本是沒有PW,只有ID:root
但是我也沒有更改帳號,只有在(圖)裡面更改pw
圖檔
(借用一下圖片)
而現在也無法登入管理畫面,也只有在config.inc.php裡面更改\r

感謝回覆

發表於 : 2005-10-03 19:36
問題狂
如果你不適用新版的MYSQL
那你參考這篇設定就可以了
http://www.phpbb-tw.net/phpbb/viewtopic.php?t=16221

發表於 : 2005-10-12 13:58
angellwillin
我如何知道我的mysql的主机名是什么呢,我的phpmyadmin和mysql的用户名和密码都正确可还是出现#1045错误