最近安装了 XAMPP 并停留在“controluser 连接失败”
Posted
技术标签:
【中文标题】最近安装了 XAMPP 并停留在“controluser 连接失败”【英文标题】:Recently installed XAMPP and stuck on "Connection for controluser failed" 【发布时间】:2017-02-01 10:21:29 【问题描述】:我最近安装了 XAMPP,但是当我在 XAMPP 中单击 mysql 的管理按钮时,它并没有在 MySQL 内部重定向,而是询问我用户名和密码并给我这个错误
配置中定义的 controluser 连接失败
我知道默认的用户名和密码是 ROOT "" 但它没有帮助。我认为controluser有问题。如何解决?
这是我登录后得到的:
这是我的 config.inc.php
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
$cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
/*
* End of servers configuration
*/
?>
s
【问题讨论】:
【参考方案1】:如果您希望密码为 root
我相信你需要改变这一行:
$cfg['Servers'][$i]['controlpass'] = '';
到
$cfg['Servers'][$i]['controlpass'] = 'root';
或者如果这不起作用,请尝试更改
$cfg['Servers'][$i]['password'] = '';
到
$cfg['Servers'][$i]['password'] = 'root';
该错误特别提到了 controluser,所以它应该是第一个。
【讨论】:
ived 尝试了这两种方法,但没有帮助。一位专业人士建议我卸载 xampp 并安装以前的版本会解决我的问题吗?当前版本是 3.2.2 我自己不认识,但我说试试看。以上是关于最近安装了 XAMPP 并停留在“controluser 连接失败”的主要内容,如果未能解决你的问题,请参考以下文章