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.

Automated mySQL DB creation script?

Discussion in 'cPanel Developers' started by rbro, May 25, 2008.

  1. rbro

    rbro Well-Known Member

    Joined:
    Jan 31, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I need a script or add-on to WHM that will give the reseller an option of having a mySQL DB automatically created upon account creation. Does this already exist somewhere? If not, how would I go about getting it done (if it's possible to do)

    Thanks!
     
  2. rbro

    rbro Well-Known Member

    Joined:
    Jan 31, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Automatic DB creation script

    I need a script that will automatically create a mySQL DB upon account creation in WHM. Does it exist? Doable? Can someone point me in the right direction?
     
  3. 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
    You can create a hook script (/scripts/postwwwacct) as described here:

    http://www.cpanel.net/support/docs/hooks.htm#postwww

    owner would be the username of the reseller. Using postwwwacct will allow you to do this and whatever else you desire upon account creation.
     
  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
    ** Merged Duplicate Threads **
     
  5. rbro

    rbro Well-Known Member

    Joined:
    Jan 31, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. Anyone around here do this kind of scripting?
     
  6. shammi1234

    shammi1234 Member

    Joined:
    Jul 26, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hello rbro,

    Hi can do this for you.

    please let me know if you are interested.

    Regards,
    Sham
     
  7. Dawzz

    Dawzz Member

    Joined:
    Nov 11, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I would be interested. Please pm details as to cost and time frame.
     
  8. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    I have already written such a script for one client and it works perfectly. Creates a database and a database user and imports a dump into that new database and populates a config file with database credentials. Please PM me if you are interested.
     
  9. jessica87

    jessica87 Member

    Joined:
    Jun 20, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    try on

    Try on freelance sites like scriptlance... plenty of programmers over there.
     
  10. bronco92

    bronco92 Member

    Joined:
    Nov 18, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I'm looking for this script now too. If anyone who can do it for me could send an email to contact@mywork.com.au it would be appreciated. Thanks.
     
  11. huggys

    huggys Registered

    Joined:
    Nov 6, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I'm looking for this as well. If anyone out there can do this, please PM me.

    Thanks!
     
Loading...

Share This Page