mysql -uroot -p Enter password: ****** ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)这里的密码输入什么
时间: 2023-09-12 18:13:30 浏览: 141
ERROR 1045 (28000): Access denied for user ''root''@''localhost'' (using password: YES)实用解决方
根据引用和[2]中的信息,当执行命令mysql -u root -p并输入密码时,出现了错误信息ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)。这表示密码输入错误或者不正确。根据这个错误信息,可以推断出密码输入不正确,导致访问被拒绝。你需要确保输入的密码是正确的。
至于具体密码应该是什么,我无法确定,因为密码是用户设置的。你需要确定你曾经设置的密码并确保正确地输入。如果你忘记了密码,你可以尝试重置MySQL的root密码来解决这个问题。具体的重置方法可以参考引用中提供的解决方案。
总结起来,当你遇到mysql -uroot -p Enter password: ******
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)这种错误时,你需要确保输入的密码是正确的,或者尝试重置MySQL的root密码来解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Enter password: ***** ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:](https://blog.csdn.net/Rbaggio92/article/details/106013614)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [mysql -u root -p报错:ERROR 1045 (28000): Access denied for user 'root'@'localhost'](https://blog.csdn.net/qq_40508832/article/details/84331411)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [连腾讯云上的docker上的mysql报错ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ ...](https://download.csdn.net/download/weixin_38732519/14074606)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文