:: 設為首頁 :: 加到我的最愛 ::
2008 年 05 月 13 日 (星期二) 11:39
hkwebs.net
用戶名稱 >     密碼 >    
忘記密碼   會員注冊
 
公 司 列 表
網 頁 寄 存
主 機 租 用
主 機 托 管
電 郵 服 務
域 名 服 務
服 務 搜 尋
服 務 排 名
名 詞 解 釋
免 費 資 源
網 頁 教 學
下 載 區
討 論 區
Google
  Thunderbird
Mozilla
GameServer.hk 香港遊戲討論區。
電子咖啡室
香港傳遞訊息
LOVELAND
 
加入

hkwebs 網頁教學 安裝 phpMyAdmin

 
主題: 安裝 phpMyAdmin
工具: PHP 4.1.0 或以上,MySQL 3.23.32 或以上,Notepad
實例: phpMyAdmin

內容:

非常好用的工具,能夠管理你的 MySQL 資料庫。透過此程式,可以直接從web上去管理MySQL,不需要到系統上去執行。

phpMyAdmin 功能包括:建立資料庫、設定控制權、建立,修改和刪除資料表、備份資料庫還原資料庫等等。
 


編碼:

基本設定:

config.inc.php
  $cfg['PmaAbsoluteUri'] = 'http://www.hkwebs.net/phpMyAdmin';
設定 phpMyAdmin 的位置。
  $cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'hkwebs.net';
$cfg['Servers'][$i]['password'] = 'password';
$cfg['Servers'][$i]['auth_type'] 是設定管理MySQL的方式,
$cfg['Servers'][$i]['host'] 是設定伺服器位置,
$cfg['Servers'][$i]['user'] 是設定用戶名稱,
$cfg['Servers'][$i]['password'] 是設定密碼。

$cfg['Servers'][$i]['auth_type'] 對應表:

config 不需要登入,根據 config.inc.php 中的用戶名稱和密碼設定。
  http 以 http 標頭登入方式登入。
  cookie 以 cookie 登入。


步驟:

  1. 首先下載 phpMyAdmin
  2. 設定 config.inc.php
  3. 上載所有檔案到伺服器上。
  4. 用瀏覽器連結到上載的位置中。

下載:

phpMyAdmin 2.5.6
 


注意:

  • 為了安全原由,小心設定您的 config.inc.php ,不要供開這個 phpMyAdmin。

如有對以上教學有任何疑問,請到討論區發問。

 
Copyright © 2003-2004
hkwebs.net All Right Reserved.