PHPmyadmin连接到远程服务器

时间:2018-04-16 14:25:09

标签: mysql apache ubuntu phpmyadmin

这是我连接远程服务器的配置

   $cfg['Servers'][$i]['host']          = '<IP>';
   $cfg['Servers'][$i]['port']          = '3306';
   $cfg['Servers'][$i]['socket']        = '/var/run/mysqld/mysqld.sock';
   $cfg['Servers'][$i]['connect_type']  = 'tcp';
   $cfg['Servers'][$i]['extension']     = 'mysql';
   $cfg['Servers'][$i]['compress']      = FALSE;
   $cfg['Servers'][$i]['auth_type']     = 'config';  
   $cfg['Servers'][$i]['user']          = 'root';
   $cfg['Servers'][$i]['password']      = 'pass';

1)端口3306对所有流量开放。

2)尝试清除cookie

3)尝试重启apache

我仍然收到此错误消息

#2002 - Connection refused
The server is not responding (or the local server's socket is not correctly configured).

0 个答案:

没有答案