我在本地计算机上安装了XAMPP,并且我想访问远程数据库。
我更改了config.ini.php文件并添加了远程服务器信息:
这些是我添加的行:
$i++;
$cfg['Servers'][$i]['host'] = 'hostname';
$cfg['Servers'][$i]['user'] = 'username'; //user name for your remote server
$cfg['Servers'][$i]['password'] = 'password'; //password
$cfg['Servers'][$i]['auth_type'] = 'config'; // keep it as config
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['compress'] = FALSE;
当我转到localhost / phpmyadmin / page时,默认情况下localhost就在那里并正常工作。但是当我选择远程服务器时,我收到以下错误消息:
#2002 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
这应该有用吗?或者我是否必须直接在远程服务器上安装phpMyAdmin?如果是这样,我只需要复制/粘贴phpMyAdmin文件?
问候。