1. 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)

Discussion in 'Troubleshooting and Problems' started by igztryhard, Mar 5, 2015.

  1. igztryhard

    igztryhard Member

    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.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  3. Tracy Perry

    Tracy Perry Well-Known Member

    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.

Share This Page