設定檔案現在需要密碼 (passphrase) (blowfish_secret)
1. 查看 phpMyAdmin 目錄底下是否有一隻 config.inc.php
,如果沒有這支檔案,請將config.sample.inc.php更改成config.inc.php
2. 編輯 config.inc.php 這支檔案,找到底下這一行
$cfg['blowfish_secret'] = ‘ ’;
/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
隨便輸入一個密碼在
$cfg['blowfish_secret']
中,主要作用是當成cookie認證用。例如:
$cfg['blowfish_secret'] =
‘thisisacookieauth’;
進入phpmyadmin時,出現“無法讀取 mcrypt 模組,請檢查 PHP 設定“??
為了方便遠端管理 MySQL Server,一定少不了 phpMyAdmin 這個套件 ,安裝的初始設定改變不大,下載套件檔後解壓縮,複製設定範例檔
config.sample.inc.php 為 config.inc.php
編輯 config.inc.php 設定檔
$cfg['blowfish_secret'] = ‘qwertyuiuyyr‘ //
自己設一個亂數密碼,隨便打就可以了。
* 錯誤訊息: 無法讀取 mysql 模組,<br />請檢查 PHP 設定 *
解: 使用 Yum 安裝套件
php-mysql
# yum install php-mysql
* 錯誤訊息: 找不到 PHP 內的 mbstring 編碼模組, 沒有這個模組, phpMyAdmin 無法準確地分割雙字元文字, 而可能產生問題
*
解:使用 Yum 安裝套件 php-mbstring
# yum install php-mbstring
* 錯誤訊息: 無法讀取 mcrypt 模組,<br />請檢查 PHP 設定 *
解: 這是因為預設認證方式設為 cookie , 但
php 缺少 mcrypt module , 可以參考下面方式安裝它, 或者採用 http 的認證模式
# yum install php-mcrypt and php-mhash
變更為 http 認證模式的方法>
編輯 config.inc.php 設定檔
$cfg['Servers'][$i]['auth_type'] = ‘http‘ // 改成http就會使用網頁認証模式啦!
最後重新啟動httpd服務就可以囉!
# service httpd
restart
沒有留言:
張貼留言