Bluehost Web Hosting Help

Local MySQL Connection Blocked To Server

Problem:

I get the following database connection error:
            Warning: mysql_connect() [function.mysql-connect]: Host 'host#.BlueHost.com' 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

Solution:

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

If the connection script is making a remote connection to our server and you are using the domain.com as the hostname, please try the server's hostname such as host#.BlueHost.com 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.

Knowledgebase Article 145,613 views bookmark tags: blocked connection host localhost mysql


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

MySQL Error Messages

This article will show a few MySQL errors along with explanations as to why they might be occurring.

MySQL Database and user name convention

I cannot connect to my database locally or remotely, do I have the correct server, username and password?

Connecting to your MySQL DB from Dreamweaver

How can I connect to our MySQL database from Dreamweaver?

Related Help Content

MySQL Connection Strings

This article will describe connections strings, what they are used for, and give examples.

Connecting Scripts to MySQL Databases

This article will explain how to connect your scripts to your MySQL databases.

Setting a Password for the Main MySQL User

I am prompted to set a new MySQL password. What does this mean and how do I change it?

Remote Database Connection Setup

How do I remotely connect using a database management software?

How to Create and Delete MySQL Databases and Users

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.

MySQL Database Compatibility

How do I make my MySQL database compatible with the version you provide?

Import a MySQL Database using phpMyAdmin

How do I import a backup of my database (.sql file) using phpMyAdmin?

Resetting MySQL Database User and Password

This article will explain how to change the password for a database in the event that the original password is lost.