[問題]phpMyAdmin 登入修改問題

Home Home
引用 | 編輯 scoopsup
2004-08-13 14:34
樓主
推文 x0
請問大大..我有一個網頁空間有數據庫的資料..
我可以直接連線進去網頁的資料庫...
可是用phpMyAdmin卻進步去...是我哪裡用錯了嗎...

以下是我讀取別站的教學....
(我是使用它的方法..比較簡單...不過還是卡在發問的地點)

首先,打開 phpMyAdmin/config.inc.php
找到 $cfg['PmaAbsoluteUri'] =請在等號的後方填入 phpMyAdmin 路徑
>>http://www.scoop.com/phpMyAdmin

接下來,修改成為限定登入的方式,找到
$cfg['Servers'][$i]['host']       = 'localhost' // MySQL hostname
>> 'www.scoop.com' // MySQL hostname

然後,找到下面兩段語法:
$cfg['Servers'][$i]['controluser']   = 'xxxxxx'       // MySQL control user settings
                                                    // (this user must have read-only
紅色xxxxxx輸入我的 MySql 管理帳號

$cfg['Servers'][$i]['controlpass']   = 'xxxxxx'       // access to the "mysql/user"
                                                      // and "mysql/db" tables)
紅色xxxxxx輸入我的 MySql 管理密碼

最後以瀏覽器開啟登入畫面的設定,找到:
$cfg['Servers'][$i]['auth_type']   = 'config'   // Authentication method (config, http or cookie based)?

把預設的 config 修改成紅色字體的 http,還有 root 移除,接著儲存檔案關閉。

以上紅色部分就是我自己設定的....
可是都不能進入耶...數據庫無法連接...
可以請大大告訴我解決的方法嗎???

獻花 x0
引用 | 編輯 hsiang
2004-08-30 01:49
1樓
  

$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
>> 'www.scoop.com'; // MySQL hostname


把它改回來試看看
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address

獻花 x0
引用 | 編輯 薩卡
2004-10-21 20:37
2樓
  
找到
$cfg['Servers'][$i]['host'] = 'localhost' // MySQL hostname


這段是 MySql 伺服器名,如果架設在 Windows 系統(不是WIN Server 系列)之上,通常為 localhost。

獻花 x0
引用 | 編輯 薩卡
2004-10-21 20:42
3樓
  
咦....日期是不是不正確...
2004 8月30日..論壇開了嗎???

獻花 x0
引用 | 編輯 stanely
2004-10-21 21:11
4樓
  
無法連接成功,都會出現error message,麻煩你貼出來讓大家幫你找原因.

獻花 x0
引用 | 編輯 mic1491
2004-10-28 15:44
5樓
  
下面是引用san168於2004-08-30 1:49 AM發表的 :


把它改回來試看看
$cfg['Servers'][$i]['host']       = 'localhost' // MySQL hostname or IP address

hi..我想問一下哦,localhost改成ip或其他名字像網域會有影響嗎? 因為我改成網域好像不能進去啊,非要改成localhost才能說,醬子會不會對需要連接mysql有影響? 比如我掛4images就不能上傳圖片...:p不知道為什麼...

獻花 x0
引用 | 編輯 FireGenie
2004-10-28 22:41
6樓
  
下面是引用mic1491於2004-10-28 3:44 PM發表的 :


hi..我想問一下哦,localhost改成ip或其他名字像網域會有影響嗎? 因為我改成網域好像不能進去啊,非要改成localhost才能說,醬子會不會對需要連接mysql有影響? 比如我掛4images就不能上傳圖片...:p不知道為什麼...

有.

MySQL 有對存取的來源做限制.

假設一台 MySQL server 中, root 這個帳號設定只能從 localhost 存取,

而這台 MySQL server 在網路上的 domain name 假設是 ooxx.com

則 root@localhost 可以存取 MySQL,

root@ooxx.com 卻不行.

獻花 x0
引用 | 編輯 here2dl
2004-11-01 12:53
7樓
  
下面是引用薩卡於2004-10-21 8:42 PM發表的 :
咦....日期是不是不正確...
2004 8月30日..論壇開了嗎???

論壇只是10月時搬了家, 之前已開兩年了 ^^
前輩真是仔細~

獻花 x0