[FIXED] #1045 Access Denied For User Localhost on Ubuntu Linux


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!

Nguồn: https://keralafolkloreakademy.com/

Xem thêm bài viết khác: https://keralafolkloreakademy.com/giai-tri/


  1. hello, I have run your video step by step but when I enter user and password it still tells me access denied
    can you help me?


Please enter your comment!
Please enter your name here