[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[G] can't get mysqld to acceppt connections ..





Please could some one help, i can't get php page to connect via port 3306
, i have set mysqld to listen on ip interfaces in the config. i have
created a user in the in User and db with permitions but still get the
following errors ..

Warning: Host '196.7.39.241' is not allowed to connect to this MySQL
server in /home/web/linuxpro.co.za/www/htdocs/dev/index.php on line 7

Warning: MySQL Connection Failed: Host '196.7.39.241' is not allowed to
connect to this MySQL server in
/home/web/linuxpro.co.za/www/htdocs/dev/index.php on line 7
couldn't connect to sever

this is my test page ..

<html>
<body>
<?php
$user = "web";
$pass = "test";
$db = "mail";
$link = mysql_connect( "196.7.39.240",$user,$pass);
if (! $link )
	die( "couldn't connect to sever");
print "Successfully connected to server <p>";
mysql_select_db( $db )
	or ( "couldn't open $db: ".mysql_error());
print "Successfully connected database \"$db\"<p>";
mysql_close($link);
?>
</body>
</html>


Many thanks
greg



Reply to: