I got a problem while connecting to db even if my details are accurate like db_name, db_username, db_password and servername also and i tried lot things like i tried to connect it with mysql_connect()
, mysqli_connect()
and PDO also but everything fails please some one help me with this problem.
$mysqli = new mysqli("localhost","credai_nashik","$1ePJv0|i,5>","credai_nashik-313235aa94");
// Check connection
if ($mysqli -> connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
exit();
}