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.

How do I connect to MySQL from WHM Plugin ?

Discussion in 'cPanel Developers' started by dansgalaxy, Sep 12, 2012.

  1. dansgalaxy

    dansgalaxy Well-Known Member

    Joined:
    Jan 29, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    I'm developing a WHM Plugin at the moment and need a way to easily have it connect to MySQL (specifically the cphulkd database).

    What is the best way to have the plugin do this? Ideally want it to be as autonomous as possible, but of course secure.
     
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Check out

    /usr/local/cpanel/whostmgr/cgi/tweakcphulk.cgi

    And Whostmgr::Mysql
     
    #2 morissette, Oct 5, 2012
    Last edited: Oct 5, 2012
Loading...

Share This Page