【发布时间】:2018-11-22 13:33:44
【问题描述】:
我的 phpmyadmin 曾经加载但出现以下错误。还没有找到解决方案。请让我知道我能做什么,感谢您的时间和帮助。
现在它会加载一个空白页面。
我按下了 sql 选项并传递了以下命令 - set password for root@localhost = password('something');
然后我通过将 'auth_type' 前面的 'config' 替换为 'cookie' 并将我的密码添加到它下面的空 '' 中来配置 phpmyadmin config.inc.php 文件。那是我的 phpmyadmin 开始空白的时候。之后,我在 pma 下的 'controlpass' 前面的空 '' 中添加了我的密码。没有帮助。我把它改回默认设置了,还是不行。
xampp Access denied for user 'pma'@'localhost' (using password: NO)
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xamppxamppxamppxamppxamppxamppxampp';
/* 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'] = 'bananashake';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$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
*/
?>
【问题讨论】:
-
你检查过 pma 的访问权限吗
-
您好,欢迎来到 SO,您可以发布您的 phpMyAdmin
config.inc.php -
我正在查找它,但正如您在图像中看到的那样,我的主机中没有特权选项,这是在线建议的解决方案的第一步。用户帐户下有“编辑权限”,数据库下有“检查权限”。即便如此,网上建议的解决方案似乎也无济于事。
-
是的,James,但是 config.inc.php 太长,无法发布。您要我删除空格并张贴吗?对不起,我在这里是菜鸟。
-
@JamesWong 我如何在这里发布?
标签: phpmyadmin xampp