ERROR 1045 (28000): Access denied for user root'@'localhost' (using password: NO
时间: 2023-08-22 12:06:19 浏览: 146
回答: 当你启动数据库时,出现了ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)的错误。这个错误通常是由于没有正确的用户名和密码所引起的。如果你很久没有使用这台电脑的MySQL,可能忘记了用户名和密码。解决这个问题的方法是使用正确的用户名和密码进行登录。如果你在终端上使用默认密码登录出现了类似的错误,可能是由于密码不正确所导致的。你可以尝试使用正确的密码登录。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)解决办法](https://blog.csdn.net/m0_46278037/article/details/113923726)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [MAC解决MySQL登录ERROR 1045 (28000): Access denied for user root@localhost (using passwor)问题](https://blog.csdn.net/yjk13703623757/article/details/130653121)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文