<?php
$dbh=mysql_connect('187.0.0.0','abcd','1234') or die(mysql_error());
if($dbh)
{
echo "server connected";
}
$db=mysql_select_db('demo') or die(mysql_error());
if($db)
{
echo "database connected";
}
?>
I used this code on another server to check the connectivity but I'm getting an error
Host 'mail.hosting1001.in' is not allowed to connect to this MySQL server