Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    91
    Likes Received:
    0
    Trophy Points:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. morissette

    morissette Well-Known Member

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

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

    And Whostmgr::Mysql
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 morissette, Oct 5, 2012
    Last edited: Oct 5, 2012
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice