Forgot mysql DB User Password, how to retrieve it ?

Discussion in 'MySQL' started by Gigacore, Apr 1, 2008.

  1. #1
    The title says all, how can retrieve it ?

    Please help me soon
     
    Gigacore, Apr 1, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    There's no way to retrieve it. You can set a new password assuming that you have administrative/other access to the database.

    What sort of access to the server do you have, Root, Control Panel, etc.?
     
    jestep, Apr 1, 2008 IP
  3. Gigacore

    Gigacore Active Member

    Messages:
    359
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #3
    yes, I have access to admin panel and its cPanel...

    Anyway I created a new username and got the pass back
     
    Gigacore, Apr 1, 2008 IP
  4. adda4u

    adda4u Well-Known Member

    Messages:
    1,003
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Hey just u can contact
    Host provider he may helps u ....
     
    adda4u, Apr 1, 2008 IP
  5. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #5
    1. Stop the mysqld daemon process.
    2. Start the mysqld daemon process with the --skip-grant-tables option.
    3. Start the mysql client with the -u root option.
    4. Execute the UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
    5. Execute the FLUSH PRIVILEGES; command.
     
    LittleJonSupportSite, Apr 2, 2008 IP