连接Linux服务器mysql数据库1045 - Access denied for user 'root @'36.45.118.17' (using password: YES)
时间: 2023-08-26 21:18:23 浏览: 113
连接Linux服务器mysql数据库时出现了1045 - Access denied for user 'root'@'36.45.118.17' (using password: YES)的错误。这个错误表明使用了错误的用户名或密码来尝试连接到MySQL数据库。这个错误可能是由于Java代码中使用了错误的用户名或密码导致的。
如果您确定输入的用户名和密码是正确的,但仍然无法连接到数据库,可以尝试重置root用户的密码。可以使用MySQL提供的mysql_secure_installation命令来进行密码重置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [aliyun centos7.5,安装mysql5.6数据库,navicat 连接数据库](https://blog.csdn.net/weixin_39947046/article/details/119088366)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [启动报错 -> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'shouyuan'](https://blog.csdn.net/qq_42815754/article/details/83587390)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文