phpMyAdmin - auth_type 'config' 不工作

phpMyAdmin - auth_type 'config' not working

在 Windows 10 机器上,我有一个本地 VB 和 Ubuntu 16.04 LTS。

我已经安装了 phpMyAdmin 软件包,它与默认 auth_type=cookie 配合得很好。

$cfg['Servers'][$i]['auth_type'] = 'cookie';

但是,当我尝试编辑 /etc/phpmyadmin/config.inc.php 并将 auth_type 更改为 'config'(以及使用我的根凭据)时,

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'rootroot';

我得到这张图片:

Ubuntu版本有什么限制吗?也许有人知道。感觉不太想调试源码

提前致谢!

更新: 凭据正确,使用 mysql -u root -p 检查它们 这是 $cfg.

的全部 print_r
Array ( [blowfish_secret] => l2WkFOENKtuMAyJ7IR3m2JsU [Servers] => Array ( [1] => Array ( [auth_type] => config [host] => localhost [extension] => mysqli [controluser] => root [controlpass] => rootroot [pmadb] => phpmyadmin [bookmarktable] => pma__bookmark [relation] => pma__relation [table_info] => pma__table_info [table_coords] => pma__table_coords [pdf_pages] => pma__pdf_pages [column_info] => pma__column_info [history] => pma__history [table_uiprefs] => pma__table_uiprefs [tracking] => pma__tracking [userconfig] => pma__userconfig [recent] => pma__recent [favorite] => pma__favorite [users] => pma__users [usergroups] => pma__usergroups [navigationhiding] => pma__navigationhiding [savedsearches] => pma__savedsearches [central_columns] => pma__central_columns [designer_settings] => pma__designer_settings [export_templates] => pma__export_templates ) ) ) 

controlusercontrolpass 是(可选)configuration storage 区域的凭据。实际的数据库连接用户名和密码配置选项叫做userpassword.