Life is a Struggle
« »
2011年03月8日未分类

phpMyAdmin:”Connection for controluser as defined in your configuration failed”

1. Type nano /etc/phpmyadmin/config.inc.php in the Linux terminal. You can substitute nano for vi or your favorite text editor.
2. Find the two blocks of text that read:
$cfg['Servers'][$i]['controluser'] = $dbuser;
$cfg['Servers'][$i]['controlpass'] = $dbpass;
one is near the top embedded in an if statement, and the other is towards the bottom. The text is not exactly the same for each block, but $cfg['Servers'][$i]['controluser'] is what matters. The block that is actually used by phpMyAdmin depends on your setup, but just for simplicity we will apply the change to both.
3. Just comment out those four lines by adding a // in front of each one.
4. Save, and the error should disappear next time you access phpMyAdmin. If you are still having trouble, feel free to post a comment.

1. Type nano /etc/phpmyadmin/config.inc.php in the Linux terminal. You can substitute nano for vi or your favorite text editor.2. Find the two blocks of text that read:
$cfg['Servers'][$i]['controluser'] = $dbuser;$cfg['Servers'][$i]['controlpass'] = $dbpass;
one is near the top embedded in an if statement, and the other is towards the bottom. The text is not exactly the same for each block, but $cfg['Servers'][$i]['controluser'] is what matters. The block that is actually used by phpMyAdmin depends on your setup, but just for simplicity we will apply the change to both.3. Just comment out those four lines by adding a // in front of each one.4. Save, and the error should disappear next time you access phpMyAdmin. If you are still having trouble, feel free to post a comment.

简而言之 注销

$cfg['Servers'][$i]['controluser'] = ‘pma’;

$cfg['Servers'][$i]['controlpass'] = ”;

即可解决问题,但后患未知,我也只是本地测试时如此应急而已.

日志信息 »

该日志于2011-03-08 22:25由 soar 发表在未分类分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

相关日志 »

  • 暂无相关日志

没有评论

发表评论 »

返回顶部