1 頁 (共 1 頁)

[問題] 我的 phpmyadmin 帳號密碼有問題啊~

發表於 : 2005-05-25 15:28
chacin
我已安裝了 iis5.0+ PHP4.3.11 + MySQL 3.23.49+ phpmyadmin 2.6.2pl1

目前遇到一個狀況~相關設定如下:

my.ini
----------------------
user=xyz
password=12345


config.inc.php
----------------------
$cfg['Servers'][$i]['user'] = 'xyz';
$cfg['Servers'][$i]['password'] = '12345';

當我在 IE 輸入 http://localhost/phpMyAdmin/index.php
卻出現錯誤訊息如下:

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

請問我密碼是不是設錯地方了?
另外如果都改成 root 登入密碼不設,是可以成功的~

發表於 : 2005-06-05 16:28
問題狂
先改成Root登入\r
登入後建立一個使用者
把所有的權限都勾選\r
密碼先留空白\r
創立以後把phpmyadmin底下的config.ini.php
中的

代碼: 選擇全部

$cfg['Servers'][$i]['auth_type']     = '';      // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = '';          // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
這一大段改成以下

代碼: 選擇全部

$cfg['Servers'][$i]['auth_type']     = 'http';      // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = '';          // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
然後回到phpmyadmin
登入\r
在按修改密碼\r
打上新的密碼\r
在選"MySQL 4.0.x相容"
這時會登出\r
再登入一次\r
輸入剛剛的密碼和帳號
OK!搞定!