theonethatownz Posted August 4, 2012 Share Posted August 4, 2012 Hey, I was wondering if anyone knows how to create a mysql database automatically when a order is placed. Using WHMCS. I'm using TCAdmin v2 and the script in tips and tricks the links aren't working really. Link to comment Share on other sites More sharing options...
javaunm Posted August 5, 2012 Share Posted August 5, 2012 Yes, I'd like to know this as well. Link to comment Share on other sites More sharing options...
LFA Posted August 5, 2012 Share Posted August 5, 2012 You need to use the game's custom scripts to create a database when the game server is created and delete it when the game server is deleted. http://help.tcadmin.com/Custom_Scripts Link to comment Share on other sites More sharing options...
KyleSmith Posted April 26, 2013 Share Posted April 26, 2013 Anyone got a pre-made script? Link to comment Share on other sites More sharing options...
CloudCUBE Posted April 27, 2013 Share Posted April 27, 2013 We use a script with tcadmins billing module to create a database on cPanel. edit the default_values.php to submit information to cpanel WHM Link to comment Share on other sites More sharing options...
KyleSmith Posted April 27, 2013 Share Posted April 27, 2013 We use a script with tcadmins billing module to create a database on cPanel. edit the default_values.php to submit information to cpanel WHM Not a good idea, I said this to Luis: Kyle: I'm thinking about creating the database and user in 'default_values.php'. Would that work? Luis: No the code in that file gets included with every action the module executes. it would create duplicate databases. Link to comment Share on other sites More sharing options...
CloudCUBE Posted April 27, 2013 Share Posted April 27, 2013 Sorry i was meant to say its included into the tcadmin2_advance.php file. it will only be submitted if its selected. works well. i would suggest on doing it this way as it works perfectly fine. Link to comment Share on other sites More sharing options...
KyleSmith Posted April 28, 2013 Share Posted April 28, 2013 Sorry i was meant to say its included into the tcadmin2_advance.php file. it will only be submitted if its selected. works well. i would suggest on doing it this way as it works perfectly fine. How do you know when to delete the database? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.