phpMyAdmin 設置


1 頁 (共 1 頁) 1 篇文章
排序

頭像
  • 系統管理員
  • 系統管理員
  • 文章總數:173
  • 註冊時間:2011-10-10 22:49
2016-09-04 22:54
1.刪除 SQL 資料庫軟體安裝完成後的預設 test 資料庫。

2.先以 root 帳號登入 phpMyAdmin 後,新增一個新的【使用者帳號】,鍵入帳號及密碼,賦予所有權限。

3.刪除 phpMyAdmin 安裝完成後的預設所有帳號,包含【任何】、【root】。

4.將 phpMyAdmin 目錄下的 config.sample.inc.php 變更名稱為 config.inc.php。

5.開啟 phpMyAdmin/config.inc.php 修改以下內容
程式碼
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['controlhost'] = 'localhost';
$cfg['Servers'][$i]['controluser'] = '新增的使用者帳號';
$cfg['Servers'][$i]['controlpass'] = '新增的使用者密碼'


6.若登入後,首頁底下出現 尚未設定 phpMyAdmin 設定儲存空間,部份延伸功能將無法使用。 了解原因。
或者前往任一個資料庫的 '操作' 頁籤設定。

則開啟 phpMyAdmin/config.inc.php 增加一筆內容
程式碼
$cfg['PmaNoRelation_DisableWarning'] = 'true'


7.若登入後,首頁底下出現 設定檔案需要設定一組加密密碼 (blowfish_secret)
則開啟 phpMyAdmin/config.inc.php 將內容
程式碼
$cfg['blowfish_secret'] = ''

修改為
程式碼
$cfg['blowfish_secret'] = 'xxxxxxxxxxxxxxx'; //在引號裡面輸入超過 32 個字元的英數作為亂數密碼   


8.重新啟動 apache。

回頂端