我試圖通過我的本地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