如題,
一般phpMyAdmin都是連到localhost的資料庫而已,
如果我想要連到其他主機上的資料庫,
可以嗎??
要怎麼做??
可否請各位大大幫忙解答一下,
先謝謝啦~~
[問題] phpMyAdmin可以連到其他主機的MySQL資料庫嗎??
版主: 版主管理群
問題狂 寫:修改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'] = '';
http://www.phpmyadmin.net/documentation/#configegira0719 寫:我也有這問題 有高手可以解說嗎