Getting Connection Error- Host ‘hostname’ is blocked in my Database Connection

Error :

Connection Error- Host ‘hostname’ is blocked 

Reason :

When more than max_connect_errors may occur successively for a given host while connecting to the MySQL server, MySQL assumes that something is wrong and blocks the host from further connection requests.

Solution:

If you are trying to connect to the remote hosts then you will be getting such error. We advise you to try connecting to the local database with different user name