https://www.phpmyadmin.net/downloads/ 下载phpmyadmin之后
登录,爆出#2002 - No such file or directory — 服务器没有响应(或本地服务器的套接字没有正确设置) 错误。这个问题其中一种可能是因为在phpmyadmin的config文件中的host
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
以上是正确的配置,出现错误的原因是$cfg['Servers'][$i]['host'] 之前的参数是localhost
改成127.0.0.1就可以。