【发布时间】:2016-03-14 11:37:39
【问题描述】:
我在 opensuse13.2 中安装了 xampp。它安装得很整齐。但是在访问http://localhost/phpmyadmin/ 页面时出现以下错误。我在这里尝试了几个答案,但没有任何帮助,例如将密码设置为“”或“”。尝试通过“http”而不是“config”进行身份验证。但没有一个有效。
MySQL 说:文档
无法连接:无效设置。 配置中定义的 controluser 连接失败。 phpMyAdmin 尝试连接 MySQL 服务器,但服务器拒绝连接。您应该检查配置中的主机、用户名和密码,并确保它们与 MySQL 服务器管理员提供的信息相对应。
下面是 phpmyadmin/config.inc.php 文件的内容。
/**
* Servers configuration
*/
$i = 0;
/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/**
* phpMyAdmin configuration storage settings.
*/
/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'root';
/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
【问题讨论】:
标签: php mysql phpmyadmin xampp