2009年6月11日

phpMyAdmin 3安裝方法

官方網站download最新版,目前最新為3.1.5版(Version compatible with PHP 5 and MySQL 5)
download後,將它解壓
#tar -zxvf phpMyAdmin-3.1.5-all-languages.tar.gz
解壓後放到網頁的根目錄下
#mv phpMyAdmin-3.1.5-all-languages /var/www/html/
切換到網頁根目錄並重新命名為phpmyadmin
#cd /var/www/html/
#mv phpMyAdmin-3.1.5-all-languages phpMyAdmin
# cd phpMyAdmin
從phpMyAdmin/libraries/下複製config.default.php到phpMyAdmin下,重新命名為config.ini.php
#cp /var/www/html/phpMyAdmin/libraries/config.default.php /var/www/html/phpMyAdmin/config.ini.php
打開config.ini.php 修改參數:
#vi config.ini.php
$cfg['PmaAbsoluteUri'] = 'http://127.0.0.1/phpMyAdmin';//phpMyAdmin的安裝路徑(可修改相關IP)
$cfg['blowfish_secret'] = 'whahah';//加密key產生碼,可隨意輸入。
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL主機的FQDN或IP
$cfg['Servers'][$i]['port'] = '3306′; // MySQL執行的port號 - 空白將用預設端口3306
$cfg['Servers'][$i]['auth_type'] = 'http'; // 驗證方式選http (config, http or cookie based)
$cfg['Servers'][$i]['user'] = 'root'; // MySQL帳號,如 root
$cfg['Servers'][$i]['password'] = '123456'; // MySQL帳號密碼

最後輸入http://127.0.0.1/phpMyAdmin,再輸入帳密就可以使用phpmyadmin來管理資料庫了

0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.