gpt4 book ai didi

您的配置中定义的 controluser 的 phpMyAdmin 连接失败

转载 作者:行者123 更新时间:2023-12-03 12:43:08 25 4
gpt4 key购买 nike

所以,今天我第一次在 Ubuntu 15.10 上安装了 XAMPP/LAMPP。 Apache 服务器工作正常,但是当我尝试转到“localhost/phpmyadmin”时,出现以下错误:
enter image description here

相信我,我搜索了整个互联网、堆栈溢出、apache friend 等,但没有一个给定的解决方案对我有用......所以这是我的 config.inc.php 文件:

<?php
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* 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'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

/* Storage database and tables */
$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]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['recent'] = 'pma__recent';
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $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';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

所以你可以看到我的用户= root 和密码是空的。但它根本不起作用,我尝试更改用户/密码,尝试更改 controluser 和 controlpass,但似乎没有任何效果。你知道我如何解决这个问题吗?

最佳答案

重新安装 phpmyadmin 并尝试

代码:
sudo dpkg-reconfigure phpmyadmin
如果这不起作用然后尝试
代码:
sudo apt-get --purge remove phpmyadmin
然后重新安装,如果这不起作用,我愿意打赌这无关紧要并且做
代码:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
并重新启动apache
代码:
##sudo /etc/init.d/apache reload
sudo service apache2 reload

关于您的配置中定义的 controluser 的 phpMyAdmin 连接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33376438/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com