[問題] 不能登入phpMyAdmin

phpMyAdmin Running Discuss
關於 phpMyAdmin 架設使用操作討論,非本程式相關問題一律砍文!

版主: 版主管理群

回覆文章
attackangel
星球普通子民
星球普通子民
文章: 3
註冊時間: 2005-09-10 06:51
聯繫:

Re: [教學]phpMyAdmin 登入

文章 attackangel »

小竹子 寫:在執行下列動作前~請先確定您建立了 MySQL 管理使用者,請參考[教學]phpMyAdmin 建立 MySQL 管理者

為了避免您的 phpMyAdmin 門戶大開,請務必要修改您的 phpMyAdmin 登入 config 檔,防止外人進入您的 mysql 造成資料庫被刪除的危機。

首先,打開 phpMyAdmin/config.inc.php

找到

代碼: 選擇全部

$cfg['PmaAbsoluteUri'] =
請在等號的後方填入您的 phpMyAdmin 路徑,例如:

代碼: 選擇全部

$cfg['PmaAbsoluteUri'] = 'http://takeneko.no-ip.com/phpMyAdmin/';
接下來,修改成為限定登入的方式,找到\r

代碼: 選擇全部

 $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname 
這個是您的 MySql 的伺服器名稱,如果您是使用網路空間,請洽詢您的網路空間提供商,所提供的 MySql 的伺服器名稱,假如您是架設在 Windows 系統(非 Server 系列)之上,通常為 localhost。

然後,找到下面兩段語法:

代碼: 選擇全部

$cfg['Servers'][$i]['controluser']   = '[color=red]xxxxxx[/color]';          // MySQL control user settings
                                                                              // (this user must have read-only
[color=red]紅色xxxxxx輸入您的 MySql 管理帳號[/color]
$cfg['Servers'][$i]['controlpass']   = '[color=red]xxxxxx[/color]';          // access to the "mysql/user"
                                                                                  // and "mysql/db" tables)
[color=red]紅色xxxxxx輸入您的 MySql 管理密碼[/color]
最後要以瀏覽器開啟登入畫面的設定,找到:

代碼: 選擇全部

$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
把預設的 config 修改成紅色字體的 http,還有紅色字體的 root 移除,接著儲存檔案關閉就可以了。

代碼: 選擇全部

$cfg['Servers'][$i]['auth_type']     = '[color=red]http[/color]';    // Authentication method (config, http or cookie based)?

$cfg['Servers'][$i]['user']          = '[color=red]root[/color]';      // MySQL user




set 完pw~~入唔到phpmyadmin

錯誤

MySQL 傳回:


#1045 - Access denied for user: 'arkei@localhost' (Using password: YES)


pw itry yes.. byt cna't

冇pw 先得
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

你有做過這個步驟嗎?
http://phpbb-tw.net/phpbb/viewtopic.php?t=25581

P.S請另開主題
回覆文章

回到「phpMyAdmin」