I was trying to connect with my database...
So i have added all the corresponding code, when run index.php.
It shows,
Error!: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
index.php :
<?php
$user = 'root';
$pass ='';
try {
$dbh = new PDO('mysql:host=localhost;dbname=marudhar_db', $user, $pass);
echo "go go go...!!!!";
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
?>