Local MySQL Connection Blocked To Server | Bluehost Support
  1. bluehost knowledge base

Local MySQL Connection Blocked To Server


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 error:

#1227 - Access denied; you need the RELOAD privilege for this operation


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 the left side.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.