mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost' solution code example
Example: mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mysql';