How to do "mysqladmin flush-hosts" on server?

Suman KC picture Suman KC · Feb 3, 2014 · Viewed 42.5k times · Source

I have a hosting account, on database section i have "MySQL® Databases", "MySQL® Database Wizard","phpMyAdmin" and "Remote MySQL" Options

Error i am getting is

Database ErrorHost 'adonis.havehost.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

Answer

Barmar picture Barmar · Feb 3, 2014

Write a server application that sends the query:

FLUSH HOSTS

to MySQL.

If you have shell access to the server, you can login and do:

mysql -u root -p -e 'flush hosts'