Jump to content

How to merge two servers into one


Recommended Posts

I have two servers listed in the Servers settings  - but they both now refer to the same server (same IP)   (one of them was the old server and then the server got replaced)..Now I have customers in both servers..  How do I migrate all the customers to ONE server in bulk, and then remove the empty server?

SQL commands are ok 🙂

Many thanks, -t

 

Edited by tkalfaoglu
Link to comment
Share on other sites

  • WHMCS Technical Analyst II

Hi @tkalfaoglu,

You will want to execute this SQL query (after you have taken a backup of the database):

UPDATE tblhosting SET server = 'NEW_SERVER_ID' WHERE server = 'OLD_SERVER_ID';

Where "NEW_SERVER_ID" is the ID of the server you want all clients to be associated with and "OLD_SERVER_ID" is the ID of the server you intend to remove.

You can easily find the ID's by looking at the tblhosting.id value of the database.

Once that query executes and all clients are associated with the one server, you can remove the duplicate server from inside WHMCS.

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated