PhpMyAdmin password

烂漫一生 提交于 2019-12-11 02:14:06

问题


I get the error #1045 - Access denied for user 'root'@'localhost' (using password: NO) after I accidentaly changed the password in phpmyadmin for root and 127.0.0.1 . the problem is i cannot change common.lib.php. I want to revert these changes in mysql somehow... Doe to the security of the server i cannot change much


回答1:


It's been a while since I've used phpMyAdmin, but if I'm not mistaken, it stores it's passwords in the mysql database it self. So, if you are able to get access to the command-line of the server, you are able to change the password using simple SQL statements.




回答2:


I hope you can access the mysql server administration. As I know the root is the main user in MySQL it'll be a problem if you cannot access it. If you have a user with the same level, try to change the password there if possible.

Here's the step on how to reset the root password in MySQL

  • How to Reset the Root Password

I was also dependent in phpmyadmin before until I know sqlyog and MySQL Query Browser and WorkBench. Have a look on this as an alternative on phpmyadmin.

  • Download MySQL Workbench
  • SQLyog free download



回答3:


Go to /etc/phpmyadmin folder. Open config-db.php

Here you will find your default username and password



来源:https://stackoverflow.com/questions/5659634/phpmyadmin-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!