I have this code in PHP:
<?php
include ('parametros.php');
$conexion = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
if (!$conexion) {
echo "hay pedo";
}else{
echo "puro fierro :v";
}
?>
When I enter the browser, I get this error:
Warning: mysqli_connect (): (HY000 / 1045): Access denied for user 'I' @ 'localhost' (using password: YES) in C: \ xampp \ htdocs \ Back End - Students \ stop \ php \ logica \ conexion.php on line 6 Connection failed: Access denied for user 'me' @ 'localhost' (using password: YES))
(Neither with that user nor with root with the password '')
When I see the MySql this appears like this:
My colleagues have the image in black letters, they appear in red.
I searched for the solution and it did not work for me. Besides how to look for that type of error.
PHP 7