After installing a local server and trying to access phpMyAdmin, you could possibly encounter the error: #1045 Access Denied for user 'root'@'localhost' (using password: YES).
If root@localhost wasn't granted the necessary rights to access the database or you provided the wrong password, you will then encounter this error.
Following this tutorial will help guide you on bypassing this error, for any local host server using phpMyAdmin.
If you get an Error #1045 in phpMyAdmin it will look like the image below:
Step 1: Open your MySQL console.
Step 2: Enter the Provided Command Lines
If you have a password, you can ignore this part.
Step 3: Open and edit your config.inc.php file located in your local server files
Step 4: Access phpMyAdmin