我想在本地尝试 phpMyAdmin 从 webmatrix 启动它...它定期显示登录页面,但我登录有问题..每次尝试它都会检索我#2002 无法登录到 MySQL 服务器
一旦下载了 phpMyAdmin 的最后一个版本,我就创建了一个官方指南中建议的 config.inc.php 文件。我尝试了很多参数但没有成功。该文件的实际配置是:
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'HTTP';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'pass';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
我哪里错了?