大家好,在下的問題在於這個網站的步驟四
便是http://phpbb-tw.net/phpbb/viewtopic.php?t=28046(不會建立超連結,還請教導一下)
內容如下:
在執行下列動作前~請先確定您建立了 MySQL 管理使用者,請參考[教學]phpMyAdmin 建立 MySQL 管理者
為了避免您的 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
// (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 移除,接著儲存檔案關閉就可以了。
代碼:
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
-------------------------------------------------------------------------------------
我的問題是在我畫深紅色的那一行,請問要在($cfg['PmaAbsoluteUri'] =)的=打上phpMyAdmin的路徑,請問路徑為何?是網址嗎?請大家為我解答,謝謝!
[問題] 關於架站之中步驟的問題,想請教一下
版主: 版主管理群
正是網址,例如:http://xx.oo/phpMyAdmin/
怪老伯伯 寫:請在等號的後方填入您的 phpMyAdmin 路徑,例如:
$cfg['PmaAbsoluteUri'] = 'http://takeneko.no-ip.com/phpMyAdmin/';
恩,如果是網址,那我的網址我只看到http://localhost/phpMyAdmin/chsa 寫:正是網址,例如:http://xx.oo/phpMyAdmin/
怪老伯伯 寫:請在等號的後方填入您的 phpMyAdmin 路徑,例如:
$cfg['PmaAbsoluteUri'] = 'http://takeneko.no-ip.com/phpMyAdmin/';
是這個網址嗎?如果不是,那請問要如何找到自己的phpMyAdmin的網址呢?
http://localhost/phpMyAdmin/為只能在自機看到此頁面,那您的論壇別人就進不去了喔,您還是先申請個網域(No-ip)吧..,建議您參考這篇(XD~a29468459 寫:恩,如果是網址,那我的網址我只看到http://localhost/phpMyAdmin/chsa 寫:正是網址,例如:http://xx.oo/phpMyAdmin/
怪老伯伯 寫:請在等號的後方填入您的 phpMyAdmin 路徑,例如:
$cfg['PmaAbsoluteUri'] = 'http://takeneko.no-ip.com/phpMyAdmin/';
是這個網址嗎?如果不是,那請問要如何找到自己的phpMyAdmin的網址呢?
申請完後,在將http://your_no-ip/phpMyAdmin/設定上去 ^_^
