how to run command "mysqladmin flush-hosts" on Amazon RDS database Server instance?

user955461 picture user955461 · Nov 4, 2011 · Viewed 140.1k times · Source

I got a database server failure, says host is blocked because of many connection errors. It ask me to unblock with 'mysqladmin flush-hosts'

how and where should I run this command to our amazon rds database server?

thank you

Answer

barryhunter picture barryhunter · Nov 5, 2011

For normal MySQL, just connect as the 'root' administrative super user, and issue the command:

FLUSH HOSTS

Even in the case of too many connections, MySQL should be keeping a connection in reserve so that a super user can connect.

The mysqladmin client generally connects as root anyway and issues the above SQL.