mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\cms\includes\db.php on line 12 code example
Example: mysqli_real_connect(): (28000/1045): Access denied for user 'u0738423'@'www8.aname.net' (using password: YES)
// Connect to mysqli database
$connection = mysqli_connect('localhost', 'root', '', 'test');
// OR with a P@$$w0rd
$connection = mysqli_connect('localhost', 'root', 'P@$$w0rd', 'test');