1 頁 (共 3 頁)

安裝phpMyAdmin4.0.5?

發表於 : 2013-08-18 10:28
yehrussell
安裝phpMyAdmin?
卻無法進入管理
viewtopic.php?p=278909#p278909
照上面網址,無法進入? 謝謝

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 10:49
心靈捕手
yehrussell 寫:安裝phpMyAdmin?
卻無法進入管理
viewtopic.php?p=278909#p278909
照上面網址,無法進入? 謝謝
您得安裝與設定好之後,才可以進入管理。

建議您:
1.補充說明您所使用的 phpMyAdmin 版本。
2.補充說明您的 phpMyAdmin 安裝與設定方法。

p.s.
phpMyAdmin 的安裝與設定,請參考底下文章之參考連結:
viewtopic.php?p=279042#p279042

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 11:06
yehrussell
心靈捕手 寫: 您得安裝與設定好之後,才可以進入管理。

建議您:
1.補充說明您所使用的 phpMyAdmin 版本。
2.補充說明您的 phpMyAdmin 安裝與設定方法。

p.s.
phpMyAdmin 的安裝與設定,請參考底下文章之參考連結:
viewtopic.php?p=279042#p279042
1.下載 phpMyAdmin-4.0.5-all-languages.7z 版本
2. http://mark528.pixnet.net/blog/post/7267524
至此設定

代碼: 選擇全部

4. 修改config.inc.php
   $cfg['Servers'][$i]['auth_type'] = 'http';  /* cookie改成http */
   $cfg['Servers'][$i]['AllowNoPassword'] = true;  /*要改成true

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 11:27
yehrussell
viewtopic.php?f=111&t=16221
裡面好多碼都沒有,所以設定時,內心會有很多問號
到底我設的對不對? 或者要不要改?

代碼: 選擇全部

$cfg['PmaAbsoluteUri'] =
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
下面要更改嗎

代碼: 選擇全部

$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 管理密碼

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 11:30
yehrussell
附上一張圖
sshot-1.png
缺少 mysqli 外掛。請檢查 PHP 設定。

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 20:32
心靈捕手
yehrussell 寫:附上一張圖
sshot-1.png
缺少 mysqli 外掛。請檢查 PHP 設定。
這個 mysqli 相當實用,可以透過底下設定啟用之。

--開啟--
php.ini

--找到--

代碼: 選擇全部

;extension=php_mysqli.dll
--取代成--

代碼: 選擇全部

extension=php_mysqli.dll
儲存後,重新啟動 Apache。

如果設定有問題,那麼您可以將 config.inc.php 打包後,上傳至竹貓。
p.s. 打包前,請先移除管理員的帳號與密碼。

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 20:47
yehrussell
心靈捕手 寫: --開啟--
php.ini

--找到--

代碼: 選擇全部

;extension=php_mysqli.dll
--取代成--

代碼: 選擇全部

extension=php_mysqli.dll
儲存後,重新啟動 Apache。

如果設定有問題,那麼您可以將 config.inc.php 打包後,上傳至竹貓。
p.s. 打包前,請先移除管理員的帳號與密碼。
謝謝老師百忙中來幫助我... (:Y) :-D
原來我錯了,

代碼: 選擇全部

;extension=php_mysqli.dll
它是在 php.ini 中
還以為在 config.inc.php 中.....
現在已經可以
sshot-2.png
不過圖中有一錯誤 :arrow: #1045 無法登錄 MySQL 伺服器

附上 config.inc.php
config.inc.rar
(1.56 KiB) 已下載 1563 次

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 21:28
心靈捕手
yehrussell 寫: 現在已經可以
sshot-2.png
不過圖中有一錯誤 :arrow: #1045 無法登錄 MySQL 伺服器

附上 config.inc.php
config.inc.rar
您先修改以下設定,看看是否可以登入。
--找到--
約第 29 行(這個設定與第 36 行重複了

代碼: 選擇全部

$cfg['Servers'][$i]['AllowNoPassword'] = true; 
--取代成--

代碼: 選擇全部

$cfg['Servers'][$i]['auth_type'] = 'cookie';
p.s.
因為我的 /phpMyAdmin/config.inc.php 是使用 /phpMyAdmin/libraries/config.default.php 修改成的,所以它的設定內容比較多。

Re: 安裝phpMyAdmin?

發表於 : 2013-08-18 21:40
yehrussell

代碼: 選擇全部

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
不知道這兩段是否要改?

我沒改上面兩段無法登入

Re: 安裝phpMyAdmin4.0.5?

發表於 : 2013-08-19 08:05
yehrussell
老師 已經可以進入phpMyAdmin
需要登入兩次

但無法新增資料庫
sshot-6.png
sshot-6.png (13.72 KiB) 已瀏覽 46853 次
謝謝

Re: 安裝phpMyAdmin?

發表於 : 2013-08-19 08:15
心靈捕手
yehrussell 寫:

代碼: 選擇全部

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
不知道這兩段是否要改?

我沒改上面兩段無法登入
這兩行是設定資料庫伺服器的管理者之帳號與密碼;
您可以等登入後,完成「新增使用者」再修改它們。
當您新增使用者之後,建議您移除使用者「root」。
$cfg['Servers'][$i]['controluser'] = '(新增使用者之帳號)';
$cfg['Servers'][$i]['controlpass'] = '(新增使用者之密碼)';
試著做以下修改,應該就可以登入了:
--找到--

代碼: 選擇全部

// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
--之後,新增--

代碼: 選擇全部

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
p.s.
更新免安裝 MySQL 時,預設使用者之帳號為 root,其密碼為空白。

Re: 安裝phpMyAdmin4.0.5?

發表於 : 2013-08-19 08:21
心靈捕手
yehrussell 寫:老師 已經可以進入phpMyAdmin
需要登入兩次

但無法新增資料庫
sshot-6.png
謝謝
root 的權限我沒有完全試過,只有用它來新增使用者而已。

建議您:
新增使用者(擁有最高權限的管理者)。

參考連結:
viewtopic.php?p=278909#p278909

Re: 安裝phpMyAdmin4.0.5?

發表於 : 2013-08-19 08:38
yehrussell
phpMyAdmin 發現一些問題

phpMyAdmin 高級功能未全部設定,部分功能不可用。要查出原因請點這裡。
如下圖:
sshot-4.png

代碼: 選擇全部

$cfg['Servers'][$i]['pmadb'] ...	錯誤 [ 文件 ]
$cfg['Servers'][$i]['relation'] ...	錯誤 [ 文件 ]
一般關聯功能: 已關閉
 
$cfg['Servers'][$i]['table_info'] ...	錯誤 [ 文件 ]
顯示功能: 已關閉
 
$cfg['Servers'][$i]['table_coords'] ...	錯誤 [ 文件 ]
$cfg['Servers'][$i]['pdf_pages'] ...	錯誤 [ 文件 ]
建立 PDF: 已關閉
 
$cfg['Servers'][$i]['column_info'] ...	錯誤 [ 文件 ]
顯示欄位註釋: 已關閉
瀏覽器轉換: 已關閉
 
$cfg['Servers'][$i]['bookmarktable'] ...	錯誤 [ 文件 ]
SQL 查詢書籤: 已關閉
 
$cfg['Servers'][$i]['history'] ...	錯誤 [ 文件 ]
SQL 歷史: 已關閉
 
$cfg['Servers'][$i]['designer_coords'] ...	錯誤 [ 文件 ]
設計器: 已關閉
 
$cfg['Servers'][$i]['recent'] ...	錯誤 [ 文件 ]
使用最近的資料表: 已關閉
 
$cfg['Servers'][$i]['table_uiprefs'] ...	錯誤 [ 文件 ]
一律使用資料表的「介面偏好」: 已關閉
 
$cfg['Servers'][$i]['tracking'] ...	錯誤 [ 文件 ]
追蹤: 已關閉
 
$cfg['Servers'][$i]['userconfig'] ...	錯誤 [ 文件 ]
使用者偏好: 已關閉

最高權限設定中

Re: 安裝phpMyAdmin4.0.5?

發表於 : 2013-08-19 08:58
心靈捕手
yehrussell 寫:phpMyAdmin 發現一些問題

phpMyAdmin 高級功能未全部設定,部分功能不可用。要查出原因請點這裡。
...
最高權限設定中
啟用這些功能必須兩個步驟:
  1. 登入 phpMyAdmin
    p.s. 我忘記 root 是否有權限執行以下功能。
    • 點選「匯入」
    • 選擇檔案「create_tables.sql」(/phpMyAdmin/examples/create_tables.sql)
    • 按「執行」
      2013-08-19_090117.png
  2. 修改 config.inc.php

    --找到--

    代碼: 選擇全部

    // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    // $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
    // $cfg['Servers'][$i]['relation'] = 'pma__relation';
    // $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
    // $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
    // $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
    // $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
    // $cfg['Servers'][$i]['history'] = 'pma__history';
    // $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
    // $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
    // $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
    // $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
    // $cfg['Servers'][$i]['recent'] = 'pma__recent';
    --取代成--

    代碼: 選擇全部

    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
    $cfg['Servers'][$i]['relation'] = 'pma__relation';
    $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
    $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
    $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
    $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
    $cfg['Servers'][$i]['history'] = 'pma__history';
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
    $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
    $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
    $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
    $cfg['Servers'][$i]['recent'] = 'pma__recent';
p.s.
升級 4.1.0 版後,有新增資料表;
請參考最新版 config.sample.inc.php 的內容做 config.inc.php 之修改。

Re: 安裝phpMyAdmin4.0.5?

發表於 : 2013-08-19 08:58
yehrussell
到該網址新增使用者(擁有最高權限的管理者)
viewtopic.php?p=278909#p278909


下面步驟卡住,不曉得在那邊登入
登入後,於右頁標籤中,點選「使用者」,再點選「新增使用者」(兩次)。
登入資訊
輸入帳號、主機(一次選「任意主機」,一次選「本地」)、密碼。

圖檔

全域權限
點選「全選」後,按「新增使用者」。
圖檔