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

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了phpMyAdmin配置中定义的controluser连接失败脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
所以,今天我第一次在ubuntu 15.10上安装了XamPP / LAMPP. apache服务器工作正常,但当我尝试去’localhost / PHPmyadmin’时,我收到以下错误

并相信我,我搜索了整个互联网,堆栈溢出,apache朋友等等,并没有给定的解决方案为我工作…所以这是我的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';

所以你可以看到我的user = root和密码为空.但它根本不起作用,我试图改变用户/通行证,试图改变controluser和controlpass,但似乎没有任何工作.你对我如何解决这个问题有任何想法吗?

重新安装PHPmyadmin并尝试

码:

sudo dpkg-reconfigure PHPmyadmin

如果那不起作用,那就试试吧
码:

sudo apt-getpurge删除PHPmyadmin

然后重新安装,如果这不起作用我愿意打赌它没关系和做
码:

sudo ln -s /etc/PHPmyadmin/apache.conf /etc/apache2/conf.d/PHPmyadmin.conf

并重新启动apache
码:

## sudo /etc/init.d/apache reloadsudo service apache2 reload

脚本宝典总结

以上是脚本宝典为你收集整理的phpMyAdmin配置中定义的controluser连接失败全部内容,希望文章能够帮你解决phpMyAdmin配置中定义的controluser连接失败所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。