HostMonster Web Hosting Help

Local MySQL Connection Blocked To Server


I get the following database connection error:
            Warning: mysql_connect() [function.mysql-connect]: Host '' is blocked
            because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home#/username/ on line #
            Unable to select database
In phpMyAdmin "flush hosts" results in the error:
            #1227 - Access denied; you need the RELOAD privilege for this operation


If the connection script resides on the HostMonster server, please change the hostname to localhost.

If the connection script is making a remote connection to our server and you are using the as the hostname, please try the server's hostname such as or server's IP. To determine either of these two, log into the cPanel to view the information in the Stats box on left side. If you still need assistance, you may contact us via Phone or Live Chat.

Knowledgebase Article 107,049 views bookmark tags: blocked connection host localhost mysql (updated 159 days ago)

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

This article will show a few MySQL errors along with explanations as to why they might be occurring. (updated 981 days ago)
Knowledgebase Article 16,421 views tags: errors mysql

I cannot connect to my database locally or remotely, do I have the correct server, username and password? (updated 2057 days ago)
Knowledgebase Article 127,625 views tags: cannot connect mysql name

How can I connect to our MySQL database from Dreamweaver? (updated 1196 days ago)
Knowledgebase Article 102,635 views tags: connecting database dream mysql weaver

Related Help Content

This article will describe connections strings, what they are used for, and give examples. (updated 617 days ago)
Knowledgebase Article 73,937 views tags: connection databases mysql

This article will explain how to connect your scripts to your MySQL databases. (updated 984 days ago)
Knowledgebase Article 33,519 views tags: database mysql scripts

How do I remotely connect using a database management software? (updated 985 days ago)
Knowledgebase Article 449,384 views tags: connection mysqlfront

I am prompted to set a new MySQL password. What does this mean and how do I change it? (updated 1131 days ago)
Knowledgebase Article 70,008 views tags: connect database mysql password phpmyadmin username

How do I make my MySQL database compatible with the version you provide? (updated 2188 days ago)
Knowledgebase Article 85,188 views tags: database mysql

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database. (updated 49 days ago)
Knowledgebase Article 485,230 views tags: creation database mysql

When setting up an account in Outlook or Outlook Express I get an error saying unable to connect to my SMTP server. (updated 1355 days ago)
Knowledgebase Article 165,704 views tags: blocked connection refused send smtp unable

This article will explain how to convert a MySQL database to UTF-8. (updated 88 days ago)
Knowledgebase Article 1,498 views tags: character database encoding mysql utf