Database password - help please

Discussion in 'Databases' started by sunny1980, Aug 25, 2009.

  1. #1
    How can I retrieve my database password. I've forgotten it and I was wondering is there a possible way to locate it?

    I have the username luckily

    Thanks
     
    sunny1980, Aug 25, 2009 IP
  2. linkstraffic

    linkstraffic Well-Known Member

    Messages:
    388
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    133
    #2
    log as root and change your password, ask your admin if you have no root access.
     
    linkstraffic, Aug 27, 2009 IP
  3. Nerv

    Nerv Active Member

    Messages:
    568
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    70
    #3
    The best way is to contact you hosting administration and ask them to reset the password for you.
     
    Nerv, Aug 27, 2009 IP
  4. kane4545

    kane4545 Guest

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Why dont you login into your cpanel and change the password of the database , it will be the easiest way to do it.
     
    kane4545, Aug 27, 2009 IP
  5. holymaru

    holymaru Banned

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    "root" is the default password. try that...
     
    holymaru, Aug 27, 2009 IP
  6. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #6
    what db ? mysql or any other ? is it home pc or in hosting ?
     
    chandan123, Aug 27, 2009 IP
  7. SCLocal

    SCLocal Notable Member

    Messages:
    1,270
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    235
    #7
    All databases (to my knowledge) use a config.php (or similarly named file) that references your database host, username and login, if you have ftp access simply access your host and take a look at the config file, your username and password will be located within it.
     
    SCLocal, Aug 27, 2009 IP