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.

Automatically create mysql user and database for new WHM accounts?

Discussion in 'General Discussion' started by joachim.n, Jun 19, 2009.

  1. joachim.n

    joachim.n Registered

    Joined:
    Jun 18, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to set up WHM so when a new account is created it automatically creates a MySQL account too, and ideally a new database for the user?

    I've looked through all the database-related settings and I can't find anything.
     
  2. joachim.n

    joachim.n Registered

    Joined:
    Jun 18, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I take it back -- the users are already there :)

    Any way to create a DB for them automatically though?
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Furthermore, you can call our APIs to create a database user and the database. I recommend creating a separate database user so when one day the user changes their cPanel password, they aren't confused as to why their databases have suddenly stopped working.
     
Loading...

Share This Page