ahmandonk Posted June 26, 2013 Share Posted June 26, 2013 Hello, anyone help me to change all domain hosting (if active) from "server1" to "server2" ? what the sql for this case ? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 27, 2013 WHMCS Support Manager Share Posted June 27, 2013 Hi, This should do the trick: UPDATE tblhosting SET server = 'x' WHERE server = 'y' AND `domainstatus` = 'Active'; Replace x with the ID of the new server, y with ID of the old server (found in tblservers). As always, before making changes to your database, please backup. 0 Quote Link to comment Share on other sites More sharing options...
ahmandonk Posted June 29, 2013 Author Share Posted June 29, 2013 Hi,This should do the trick: UPDATE tblhosting SET server = 'x' WHERE server = 'y' AND `domainstatus` = 'Active'; Replace x with the ID of the new server, y with ID of the old server (found in tblservers). As always, before making changes to your database, please backup. 218 rows affected. ( Query took 0.0027 sec ) Thanks!!! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.