Need admin to flush hosts

Status
Not open for further replies.

TinaTraumatic

New Member
Messages
6
Reaction score
0
Points
0
site: habbnation.x10hosting.com
username: tina7

I've seen that other people have had this problem, and they needed an admin to flush the hosts for them?

Warning
: mysql_pconnect() [function.mysql-pconnect]: Host '74.86.133.24' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/tina7/public_html/radiodjpanel/connect.php on line 10

I also read from Brandon, that i should change it to localhost so that it doesn't happen again - does this mean instead of habbnation.x10hosting.com ?
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
You need to set the HOST to "localhost" on the database configuration file. It's usually config.php, configuration.php or database.php
 

TinaTraumatic

New Member
Messages
6
Reaction score
0
Points
0
Thanks for FLUSH HOST ing:)
Hmm, I'm not quite sure i understand what you mean, and (I'm using a third party script, i hope its alright for me to ask for help on this, as its actually asking about putting localhost, for my x10hosting database :) ) if this is what you mean to put it as:-
Code:
<?

//set local variables
$dbhost = "localhost"; //Database Host
$dbuser = "tina7_Brad"; //Database User
$dbpass = "[COLOR=Silver]password hidden[/COLOR]"; //Database Password
$dbname = "tina7_rdj"; //Database Name

//connect 
$db = mysql_pconnect($dbhost,$dbuser,$dbpass); 
mysql_select_db("$dbname",$db); 

?>
and the only config file i could find was in /admin of the script, which didn't mention host or anything i don't think? ;)

Thank you for your continued support!

edit:
I just thought, do i need to upgrade to Intermediate to be able to do those queries? (As i'm getting Access Denied for user Brad - i just ASSUMED that this was me getting information wrong like the host or password for example... perhaps i just can't do those commands?)
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
$dbhost = "localhost"; is correct.
Upgrade to "Intermediate" PHP for your script to work correctly.

Make sure you've givin permissions to the user tina7_Brad to access/modify the database tina7_rdj (this is done at cPanel > MySQL Databases)
 
Status
Not open for further replies.
Top