Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created January 3, 2019 12:46
Show Gist options
  • Save BenSlabbert/dbc8ff11a97e08b1a0c20828df243c5e to your computer and use it in GitHub Desktop.
Save BenSlabbert/dbc8ff11a97e08b1a0c20828df243c5e to your computer and use it in GitHub Desktop.
Flush Hosts (RDS)
Flush Hosts on RDS instances when you cannot directly connect.
Reset the master password on the instance
SSH into an EC2 instance which can connect to the instance
install the mysql client (Amazon AMIs) sudo yum install mysql
connect to the db as roort:
mysql -h <<RDS HOST>> -u root -p
Once connected execute:
FLUSH HOSTS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment