<?php
$host="localhost";
$user="user";
$password="debashree";
$connect=mysqli_connect($host,$user,$password);
if ($connect->connect_error) {
die("connection_aborted".$connect->connect_error);
}
echo "connected succesfully";
This is the mysql connection php script. It is constantly showing the error of
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'user'@'localhost' (using password: YES) in C:\xampp\htdocs\index.php on line 6
Notice: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 7 connected successfully
I cannot understand please help me?