[MySQL]Connect Error
#1

Hi,
I have a server and it has MySQL it also has a online player control panel the server is on another host and the player control panel is on another host.. The problem is that when the host in which player control panel is tries to connect to the host of server it gives an error..
Код:
Warning: mysql_connect() [function.mysql-connect]: Host '<Host Ip>' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/a1819701/public_html/config.php on line 3
The host in which my server is have given me the permission to get outcoming connection.
My config.php
PHP код:
 <?php
    $connect 
mysql_connect("Host address(the host of my server address where the .sql is but is the login page)""myusername""mypassword") or die("I can't connect to the server!"); //connecting to mysql, change setting if you have to
    
mysql_select_db("mydatabase") or die ("I can't find the database!"); //selecting database, change name to your database name!
    
    
function sanitize($string//function for sanitize from xss and mysql and csrf... 
    

        
$string strip_tags($string); 
        
$string mysql_real_escape_string($string); 
        return 
$string;
    } 
?>
Please I Need Help!
and also in myusername and mypassword and mydatabase I have put the correct things!
Reply
#2

http://dev.mysql.com/doc/refman/5.0/...cked-host.html
Reply
#3

Can You Please Just Tell Me?
Because In The Links Of MySQL I don't know where to add that..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)