This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host 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#.Justhost.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 Just Host 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#.Justhost.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 152,708 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

This article will show a few MySQL errors along with explanations as to why they might be occurring.
Knowledgebase Article 53,217 views tags: errors mysql

I cannot connect to my database locally or remotely, do I have the correct server, username and password?
Knowledgebase Article 201,520 views tags: connect disconnected hostname mysql user

How can I connect to our MySQL database from Dreamweaver?
Knowledgebase Article 146,687 views tags: connecting database dream mysql weaver

Related Help Content

This article will describe connections strings, what they are used for, and give examples.
Knowledgebase Article 143,793 views tags: connection databases mysql

This article will explain how to connect your scripts to your MySQL databases.
Knowledgebase Article 111,911 views tags: database mysql scripts

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 116,538 views tags: connect database mysql password phpmyadmin username

How do I remotely connect using a database management software?
Knowledgebase Article 787,017 views tags: connection mysqlfront

This article will explain MySQL database and user creation and deletion, and explain how to assign a user to a database.
Knowledgebase Article 652,168 views tags: creation database mysql

How do I make my MySQL database compatible with the version you provide?
Knowledgebase Article 118,989 views tags: compatible database mysql

How do I import a backup of my database (.sql file) using phpMyAdmin?
Knowledgebase Article 491,098 views tags: database mysql phpmyadmin

This article will explain some common causes for 500 errors on Dedicated or V.P.S servers.
Knowledgebase Article 42,559 views tags: dedi dedicated error server vps

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.