Can’t log into phpMyAdmin: mysqli_real_connect(): (HY000/1698): Access denied for user ‘root’@’localhost’

Introduction If you’re seeing mysqli_real_connect(): (HY000/1698): Access denied for user ‘root’@’localhost’ when trying to log into phpMyAdmin, it usually means there’s a configuration or authentication issue with MySQL or MariaDB. This error may occur for any of the following reasons: MySQL 5.7 / MySQL 8+ (and MariaDB 10.4+) In MySQL 5.7, MySQL 8, and MariaDB … Continue reading Can’t log into phpMyAdmin: mysqli_real_connect(): (HY000/1698): Access denied for user ‘root’@’localhost’