Automated mySQL DB creation script?

rbro

Well-Known Member
Jan 31, 2002
47
0
306
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!
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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?
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.
 

WebScHoLaR

Well-Known Member
Dec 14, 2005
508
3
168
Planet Earth
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!
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.
 

huggys

Registered
Nov 6, 2009
2
0
51
I'm looking for this as well. If anyone out there can do this, please PM me.

Thanks!