Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: permissions

  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    60
    Thanks
    4
    Thanked 0 Times in 0 Posts

    permissions

    While setting up file sharing I guess I failed to check permission for one file. I'm at a loss as to how to change this. Any help ?

    Code:
    Unable to connect to database: Access denied for user 'root'@'localhost' (using password: YES)

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    That's not an Apache or filesystem issue. That's a login failure to the dbms.
    Double check the username and password for the root account for the (presumably) mysql login attempt. It is also possible (although IMO unlikely) that the root account is denied locally and granted remotely (just the logic of such makes absolutely no sense).
    If you've forgotten your root password (try without one as well since the default is no password), follow the documentation here for resetting the root password (assuming you are using mysql): http://dev.mysql.com/doc/refman/5.0/...rmissions.html

    Edit:
    BTW, I should mention: never use root as your user account. Use a user account created for JUST the database in question.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •