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)."

asked 4 months ago162 views
3 Answers
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
EXPERT
answered 4 months ago
  • 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
EXPERT
answered 4 months ago
  • 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
answered 4 months ago
  • I did check the Auto-generate password is not enabled, and I rebooted twice.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions