[英]Lost Global Privileges on root@localhost in PHPMyAdmin (XAMPP)
Hi all and please help 大家好,请帮忙
I have been running XAMPP and PHPMyAdmin for a number of years on my PC. 我在PC上运行XAMPP和PHPMyAdmin已有很多年了。 Both have served me well.
两者都为我服务。
This morning I got an warning message basically saying give root a password because it was not secure. 今天早上,我收到一条警告消息,基本上是说给root用户一个密码,因为它不安全。 I did (or thought I had), but as a result Now all I can view is a database called information_schema.
我做到了(或以为自己拥有了),但是结果是现在我只能查看一个名为information_schema的数据库。
I initially panicked, but then found that all my other test sites are working ok and I can still access them via their own username and password. 我最初感到惊慌,但后来发现我所有其他测试站点都可以正常运行,我仍然可以通过其自己的用户名和密码来访问它们。
Therefore my question is: Please could anyone tell me how I can grant Global Privileges back on root@localhost? 因此,我的问题是:请谁能告诉我如何才能在root @ localhost上授予全局特权? I have tried a number of things all morning but I get greeted either with a Syntax problem or a 1045 error message, saying Access Denied.
我整个上午都尝试了很多方法,但是遇到语法问题或1045错误消息时都打招呼,说“访问被拒绝”。
I welcome any help or advice. 我欢迎任何帮助或建议。 On the bright side, I have a password for root now!
从好的方面来说,我现在有root用户密码!
When you change the password on the root
userid from within phpMyAdmin, you then have to put that password into the phpMyAdmin config. 当您从phpMyAdmin内部更改
root
用户ID上的密码时,则必须将该密码放入phpMyAdmin配置中。
So edit \\xampp\\phpmyadmin\\config.inc.php 因此,编辑\\ xampp \\ phpmyadmin \\ config.inc.php
Find this line 找到这条线
$cfg['Servers'][$i]['password'] = '';
and add the password to it 并添加密码
$cfg['Servers'][$i]['password'] = 'NEW_PASSWORD';
Ok. 好。 Sorted.
排序。 In my case, I discovered that I had another global login and from the User list, I was able to grant global privileges for the root login once again
以我为例,我发现我还有另一个全局登录名,并且从“用户”列表中,我能够再次为根登录名授予全局特权。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.