close
參考下列網站看看吧~    phpmyadmin嘗試連線到 mysql伺服器出現錯誤?
 http://tino.loxa.edu.tw/php/
 http://dyna.nc.hcc.edu.tw/php/
或者直接用以下方法設定,以下是我在網路上整理出來的(當然經過測試嚕)
首先你還必須要設定權限一下,由於權限方式我是直接用HTML存檔,所以無法列出
你可以先參考上面網站,然後在進行以下設定~
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
為了避免您的 phpMyAdmin 門戶大開,請務必要修改您的 phpMyAdmin 登入 config 檔,防止外人進入您的 mysql 造成資料庫被刪除的危機。
 
 首先,打開phpMyAdmin/config.inc.php
 找到
 
$cfg['PmaAbsoluteUri'] =

 
 請在等號的後方填入您的 phpMyAdmin 路徑,例如:
 
$cfg['PmaAbsoluteUri'] = 'http://takeneko.no-ip.com/phpMyAdmin/';

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

 
 這個是您的 MySql 的伺服器名稱,如果您是使用網路空間,請洽詢您的網路空間提供商,所提供的 MySql 的伺服器名稱,假如您是架設在 Windows 系統(非 Server 系列)之上,通常為 localhost。
 
 然後,找到下面兩段語法:
 
$cfg['Servers'][$i]['controluser'] = 'xxxxxx'; // MySQL control user settings
 紅色xxxxxx輸入您的 MySql 管理帳號
 $cfg['Servers'][$i]['controlpass'] = 'xxxxxx'; // access to the "mysql/user"
 紅色xxxxxx輸入您的 MySql 管理密碼

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

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

    w047 發表在 痞客邦 留言(0) 人氣()