Getting Access denied while connecting MySQL from PHP code

Hi,

I am getting following error while connecting to my MySQL database. (which is up and running)
**
ERROR: SQLSTATE[HY000] [1045] Access denied for user ‘epiz_20105752’@‘192.168.0.42’ (using password: YES) **

I am using below PHP code:

_<?php
$servername = “sql304.epizy.com”;
$username = “epiz_20105752”;
$password = “”;
$dbname = “epiz_20105752_testdb”;

try {
$conn = new PDO(‘mysql:host=sql304.epizy.com;dbname=epiz_20105752_testdb’, $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo 'ERROR: ’ . $e->getMessage();
}

?>_

Can some one help me on this?

Regards,
Harshal

I’ve just checked your script and it seems to be working fine from here. The settings look OK too.