[FIXED]

Опубликовано: 06 Октябрь 2024
на канале: Let's Fix That Error
15,650
132

I get this error while I am developing my website on the localhost on my laptop. I have Ubuntu 18.04 LTS installed, and I use the native /var/www/html directory for the apache client.

The error shown in phpmyadmin page:

mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)

and this error too.

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

I found that I was using the wrong username and password for the phpmyadmin so I get them from the /etc/phpmyadmin directory from a file called config-db.php

I hope you find it useful. AND THANKS FOR WATCHING!