如題,
請教各位前輩要如何從外面連線EasyPHP的MySQL資料庫
並且做查詢的動作
如何做設定?
另外, 請問可以從外面連線EasyPHP的phpmyadmin嗎? 由遠端控制phpmyadmin?
請前輩指點迷津
[問題]EasyPHP的phpmyadmin外面連線問題
版主: 版主管理群
Re: [問題]EasyPHP的phpmyadmin外面連線問題
why not? phpMyAdmin 的用途不只是 GUI 而已...michaelliu0624 寫:另外, 請問可以從外面連線EasyPHP的phpmyadmin嗎? 由遠端控制phpmyadmin?
我想你最大的問題可能是在 EasyPHP 把他的管理目錄設定了 acl 吧?
-
michaelliu0624
- 星球普通子民

- 文章: 14
- 註冊時間: 2006-05-30 19:37
[問題]我所做的修改
chiouss前輩您好,
我所使用的套件是EasyPHP當中的phpmyadmin
之前, 我是用linux Fedora Core4架設網站, 我自己也有安裝phpmyadmin獨力的套見在我的linux server上面
但是
現在我的server是以Windows XP來做, 並且使用EasyPHP套件
我試著去修改EasyPHP資料夾內的phpmyadmin資料夾的config.inc.php檔案
但是怎樣修改, 就是無法利用我的ip, 連線到phpmyadmin的畫面(如. http://xxx.xx.xxx.xxx/mysql/index.php, 這是EasyPHP預社的phpmyadmin登入畫面, 原本我都是用http://localhost/mysql/index.php做連線)
對於EasyPHP\phpmyadmin\config.inc.php檔案的修改, 我改了以下幾個地方
1. $cfg['PmaAbsoluteUri'] = 'http://xxx.xx.xxx.xxx/mysql/index.php';
2. $cfg['Servers'][$i]['host'] = 'xxx.xx.xxx.xxx';
3. $cfg['Servers'][$i]['auth_type'] = 'http';
4. $cfg['Servers'][$i]['user'] = 'root';
5. $cfg['Servers'][$i]['password'] = 'dqwoidogf';
如此的修改config.inc.php檔案
我還是做不到
1. 在別台電腦, 打入http://xxx.xx.xxx.xxx/mysql/index.php, 無法登入
2. 無法以php語法, 連線xxx.xxx.xxx.xxx的資料庫, 以及查詢的動作
可以請問我有哪裡出了錯嗎?
我所使用的套件是EasyPHP當中的phpmyadmin
之前, 我是用linux Fedora Core4架設網站, 我自己也有安裝phpmyadmin獨力的套見在我的linux server上面
但是
現在我的server是以Windows XP來做, 並且使用EasyPHP套件
我試著去修改EasyPHP資料夾內的phpmyadmin資料夾的config.inc.php檔案
但是怎樣修改, 就是無法利用我的ip, 連線到phpmyadmin的畫面(如. http://xxx.xx.xxx.xxx/mysql/index.php, 這是EasyPHP預社的phpmyadmin登入畫面, 原本我都是用http://localhost/mysql/index.php做連線)
對於EasyPHP\phpmyadmin\config.inc.php檔案的修改, 我改了以下幾個地方
1. $cfg['PmaAbsoluteUri'] = 'http://xxx.xx.xxx.xxx/mysql/index.php';
2. $cfg['Servers'][$i]['host'] = 'xxx.xx.xxx.xxx';
3. $cfg['Servers'][$i]['auth_type'] = 'http';
4. $cfg['Servers'][$i]['user'] = 'root';
5. $cfg['Servers'][$i]['password'] = 'dqwoidogf';
如此的修改config.inc.php檔案
我還是做不到
1. 在別台電腦, 打入http://xxx.xx.xxx.xxx/mysql/index.php, 無法登入
2. 無法以php語法, 連線xxx.xxx.xxx.xxx的資料庫, 以及查詢的動作
可以請問我有哪裡出了錯嗎?
Re: [問題]我所做的修改
1. 預設的 mysql server 有限制 root@localhost 登入,所以不要把你的 host 換成 localhost (127.0.0.1) 以外的 IP 位置,如果你有需要請先修改 MySQL 裡面 root 的權限設定。michaelliu0624 寫:對於EasyPHP\phpmyadmin\config.inc.php檔案的修改, 我改了以下幾個地方如此的修改config.inc.php檔案代碼: 選擇全部
$cfg['PmaAbsoluteUri'] = 'http://xxx.xx.xxx.xxx/mysql/index.php'; $cfg['Servers'][$i]['host'] = 'xxx.xx.xxx.xxx'; $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'dqwoidogf';
我還是做不到
1. 在別台電腦, 打入http://xxx.xx.xxx.xxx/mysql/index.php, 無法登入
2. 無法以php語法, 連線xxx.xxx.xxx.xxx的資料庫, 以及查詢的動作
2. 檢查你 Apache 的 httpd.conf 或是網頁目錄底下的 .htaccess,是否對你的目錄有做存取的限制。指令會類似這樣:
代碼: 選擇全部
Order Allow,Deny
Allow from any