The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Obtaining mysql password in cpanel

Discussion in 'cPanel Developers' started by paulgfx, Mar 24, 2006.

  1. paulgfx

    paulgfx Registered

    Joined:
    Mar 9, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi.
    I need to obtain mysql password of the root user, because I need it into a cpanel addon.
    I searched over net, but I couldn't find any clue.
    Please tell me how can I do this.
    Thanks.
    Paul
     
  2. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    You can reset the root password by logging into WHM and clicking "SQL Services" -> "MySQL Root Password".
     
  3. lvalics

    lvalics Active Member

    Joined:
    Sep 30, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    The ideea is to obtain from shell the root password for installation and running a third party script.
    Other Control Panels keep it in a file, wonder if cPanel it keep as well in a file or no.

    In the meantime I found out: /root/.my.cnf
     
    #3 lvalics, Mar 25, 2006
    Last edited: Mar 25, 2006
Loading...

Share This Page