Suman KC
Suman KC

Reputation: 3528

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

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'

Upvotes: 8

Views: 56749

Answers (6)

Ayan
Ayan

Reputation: 8906

In MySql,run the following query:

FLUSH HOSTS;

Upvotes: 3

Shiv Singh
Shiv Singh

Reputation: 7221

log in to your server by putty SSH, and just type this command

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

and enter your root password after that your host name will be flushed , with out showing any massage in Shell.

Upvotes: 1

Uchit Shrestha
Uchit Shrestha

Reputation: 547

mysql -u root -p -e 'flush hosts' And you can even contract your server provider

Upvotes: 4

user3418943
user3418943

Reputation: 75

This must solve your issue.

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

Upvotes: 7

Mahesh Patil
Mahesh Patil

Reputation: 1551

Using mysqladmin you can execute this command:

mysqladmin flush-hosts;

and

mysqladmin flush-status;

This will remove the error shown by your MySQL server.

Upvotes: 1

Barmar
Barmar

Reputation: 782130

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'

Upvotes: 17

Related Questions