Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: NO) in C:\Server\data\htdocs\sql.php on line 7Connection failed: Access denied for user 'username'@'localhost' (using password: NO) code example
Example: mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql';