• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Access denied for user 'root'@'localhost' (using password: YES)

#1
Hi,
So basically when i'm trying to connect to my forums using xenforo I get this error:
An unexpected database error occurred. Please try again later.

The message in Source tells me this:
<!-- Access denied for user 'root'@'localhost' (using password: YES) -->

I've used xenforo for a couple of months and this just started happening. Note that I did not do any changes to anything the last couple of days this occurred.
 

Brogan

XenForo moderator
Staff member
#2
If this has occurred without any changes then you may want to speak to your host.

The error suggests the details in the /library/config.php file no longer match the database instance credentials.

Someone must have changed something.
 

Tracy Perry

Well-known member
#3
And to add to that.. PLEASE change your username for the DB (create another user and give it rights to the DB) from root. That is VERY poor practice from a security standpoint.