我试图通过我的本地phpmyadmin安装程序(从xampp安装)访问我的远程mysql服务器。这里是我的phpmyadmin config.inc.php文件:我无法通过本地phpmyadmin访问远程mysql服务器
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'remote-mysql-server-username';
$cfg['Servers'][$i]['password'] = 'remote-mysql-server-pass';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
// remote mysql server
$cfg['Servers'][$i]['verbose'] = 'remote mysql server';
$cfg['Servers'][$i]['host'] = 'some_website.com/';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = FALSE;
我得到这个错误:
hpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
明显的问题是服务器,端口和密码等是否正确。那么你能否验证phpmyadmin以外的数据库连接(比如说'ncat')? – KevinO
是的,他们是正确的,因为我通过网络应用程序和SSH连接到我的mysql服务器.. – Dave2345