[MySQL]Connect Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [MySQL]Connect Error (
/showthread.php?tid=546141)
[MySQL]Connect Error -
LazyB0y - 13.11.2014
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!
Re: [MySQL]Connect Error -
Riddick94 - 13.11.2014
http://dev.mysql.com/doc/refman/5.0/...cked-host.html
Re: [MySQL]Connect Error -
LazyB0y - 13.11.2014
Can You Please Just Tell Me?
Because In The Links Of MySQL I don't know where to add that..