注册 登录
编程论坛 MySQL论坛

[求助]本地phpMyAdmin管理远程数据库的问题

mentos 发布于 2007-03-13 11:42, 3224 次点击

本地phpMyAdmin

config.inc.php的设置是

$cfg['Servers'][$i]['host'] = '远程主机IP';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';

连接时显示

MySQL 返回:

#2003 - 服务器没有响应

问题出在哪里了

2 回复
#2
mentos2007-03-13 12:05

由于本地也有一个数据库要管理 所以 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; 没有改

而是在 localhost的下面 另加了一个用户的样子

相当于 $cfg['Servers'][1]['host'] = 'localhost’;

$cfg['Servers'][2]['host'] = ‘远程主机IP;

在phpMyAdmin的主页面上选择服务器
这样的设置 应该没有问题吧

#3
lmhllr2007-03-30 23:55
要远程数据库给你授权才能连接~~
1