Hello Navnath,
Could you show the exact error that you are seeing? From the given error, I could see that you may need to allow remote connections to your database in the server. Instance-level access control protects sql instances against unauthorized logins. You can visit stackoverflow [1][2] for further insights.
[1] https://stackoverflow.com/questions/10573583/not-able-to-connect-to-mysql-server-using-pdo