简体   繁体   English

我从 phpmyadmin 中删除了所有用户,现在它说'#1045 - 用户'root'@'localhost' 访问被拒绝(使用密码:NO)'

[英]I deleted all the users from phpmyadmin and now it is saying '#1045 - Access denied for user 'root'@'localhost' (using password: NO)'

I deleted all the users from phpmyadmin and now it is saying我从 phpmyadmin 中删除了所有用户,现在它说

'#1045 - Access denied for user 'root'@'localhost' (using password: NO)' '#1045 - 用户 'root'@'localhost' 的访问被拒绝(使用密码:NO)'

It will not let me access ' phpmyadmin ' at all anymore.它不会让我再访问' phpmyadmin '。

I am using a mac and I have been spending hours trying to find out how to solve this problem.我正在使用 mac,我一直在花费数小时试图找出如何解决这个问题。

It says below下面说

'phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. 'phpMyAdmin 尝试连接 MySQL 服务器,服务器拒绝连接。 You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.'您应该检查配置中的主机、用户名和密码,并确保它们与 MySQL 服务器管理员提供的信息相对应。

Can anyone help me?谁能帮我?

Thanks Josh谢谢乔希

Try to assign a password to root user.尝试为 root 用户分配密码。 I believe it cannot be blank.我相信它不能是空白的。

first of all it is a bad idea to delete all users from phpmyadmin (although I did the same and got a lot of problems after that).首先,从 phpmyadmin 中删除所有用户是一个坏主意(尽管我做了同样的事情并且在那之后遇到了很多问题)。 There are some solutions: try this .有一些解决方案:试试这个 You find in these discussion several steps to take you back to phpmyadmin.您可以在这些讨论中找到几个步骤,将您带回到 phpmyadmin。 But if you are interesting in my solution:但是,如果您对我的解决方案感兴趣:

  1. I've deleted completely xampp from my PC (All folders and files with name XAMPP).我已经从我的电脑中完全删除了 xampp(所有文件夹和文件名为 XAMPP)。 After I've searched for the rest file in the directory where I've previously installed it, and delete them as well.在我之前安装它的目录中搜索其余文件后,也删除它们。

  2. Reinstalled the XAMPP with phpmyadmin.用 phpmyadmin 重新安装了 XAMPP。 Done.完毕。 You're good to go!你可以走了!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows:#1045-用户'root'@'localhost'的访问被拒绝(使用密码:是)phpmyadmin - Windows: #1045 - Access denied for user 'root'@'localhost' (using password: YES) phpmyadmin SQLSTATE [28000] [1045]用户'root'@'localhost'的访问被拒绝(使用密码:NO) - SQLSTATE[28000][1045] Access denied for user 'root'@'localhost'(using password:NO) LAMP#1045-用户'root'@'localhost'的访问被拒绝(使用密码:NO) - LAMP #1045 - Access denied for user 'root'@'localhost' (using password: NO) SQL: select * from users: SQLSTATE[HY000] [1045] 用户 'root'@'localhost' 访问被拒绝(使用密码:YES) - SQL: select * from users: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) #1045-用户'root'@'localhost'的访问被拒绝(使用密码:是) - #1045 - Access denied for user 'root'@'localhost' (using password: YES) 我在 ubuntu 上使用命令 sudo mysql 收到 ERROR 1045 (28000): Access denied for user 'root'@'localhost'(使用密码:NO) - I got ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) with the command sudo mysql on ubuntu SQLSTATE [HY000] [1045] 用户'root'@'localhost'的访问被拒绝(使用密码:NO)(SQL:select *来自`permissions`) - SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from `permissions`) XAMPP PhpMyAdmin错误1045,“用户'root'@'localhost'的访问被拒绝 - XAMPP PhpMyAdmin Error 1045, "Access denied for user 'root'@'localhost' #1045-拒绝'root'@'localhost'访问(使用密码:是) - #1045 - Access denied for 'root'@'localhost' (using password: YES) SQLSTATE[HY000] [1045] 使用 Mac Os 和 MAMP 拒绝用户 'root'@'localhost' 的访问(使用密码:否) - SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) using Mac Os and MAMP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM