phpmyadmin error:#2002 - 服务器没有响应 (或者本地 MySQL 服务器的套接字没有正确配置)
编译配置文件:
vim config.inc.php
$i++;
/ Authentication type /
$cfg[‘Servers‘][$i][‘verbose‘] = ‘localhost‘; ;服务器内网地址IP
$cfg[‘Servers‘][$i][‘host‘] = ‘localhost‘; ;服务器内网地址IP
$cfg[‘Servers‘][$i][‘port‘] = ‘port‘; ;数据库端口
$cfg[‘Servers‘][$i][‘socket‘] = ‘‘; ;数据库socket
$cfg[‘Servers‘][$i][‘connect_type‘] = ‘tcp‘;
$cfg[‘Servers‘][$i][‘extension‘] = ‘mysql‘;
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘http‘;
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘; ;登录帐号
$cfg[‘Servers‘][$i][‘password‘] = ‘‘; ;登录密码
$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = true;
原文地址:http://blog.51cto.com/2935559/2136508
时间: 2024-11-13 10:12:49