Sudden Drop in RDS Connections and Connection Attempt Issues

0

I've encountered a sudden drop in connections to my RDS instance, with all connections dropping to zero. In my attempt to resolve the issue, I've taken the following steps:

1.Connection Attempts:

I tried connecting using both the bastion host method and the command line (cmd).

2.MySQL Workbench Error:

While attempting to connect via MySQL Workbench, I received the error: "Access denied for user 'username'@'using system ip' (using password: yes)."

3.Command Line Error:

In the command line, the error encountered was: "ERROR 1045 (28000): Access denied for user 'username'@'using system ip' (using password: YES)."

已提问 4 个月前182 查看次数
3 回答
0

Was the RDS publicly available?

Just wondering if it’s been compromised. You can reset the master password via the AWS console.

profile picture
专家
已回答 4 个月前
  • yes . Its Public

  • Yes, I reset the password and am now able to connect with DB. Thank you. Can you explain why the error came

  • I am going to assume here that the database may have been compromised and someone logged in externally and changed the password. Like I say, I am only assuming here.

  • Alternatively your allowing AWS Secret Manager to Manage the Admin password and it was auto rotated. You need to check if that is enabled

0

Hello.

Can I check the RDS error logs and general logs?
These logs may contain logs that can help identify the cause.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.MySQL.LogFileSize.html

Also, make sure you are using the correct password.
By the way, are you connecting as the RDS admin user?
If you are using the user you created instead of the RDS admin user, use the command below to check whether external access is allowed in the host column.

select host,user from mysql.user;
profile picture
专家
已回答 4 个月前
  • In logs repeated error : Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

    and the instance is available state

0

Sounds like you have password auto rotation on.. Turn it off or restart the application :)

wmz
已回答 4 个月前
  • I did check the Auto-generate password is not enabled, and I rebooted twice.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容