1 頁 (共 1 頁)

[問題] phpMyAdmin可以連到其他主機的MySQL資料庫嗎??

發表於 : 2005-09-18 14:04
hcj671223
如題,

一般phpMyAdmin都是連到localhost的資料庫而已,
如果我想要連到其他主機上的資料庫,
可以嗎??
要怎麼做??

可否請各位大大幫忙解答一下,

先謝謝啦~~

發表於 : 2005-09-18 15:09
問題狂
修改config.inc.php就可以了

發表於 : 2005-09-28 22:57
hcj671223
問題狂 寫:修改config.inc.php就可以了

代碼: 選擇全部

$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';
是指這個部份嗎??

發表於 : 2007-07-19 14:26
egira0719
我也有這問題 有高手可以解說嗎

小弟也是超新手 努力中

發表於 : 2007-07-20 09:53
chiouss
egira0719 寫:我也有這問題 有高手可以解說嗎
http://www.phpmyadmin.net/documentation/#config