Jump to content

Changing accounts to a new server 2017


ocastaned

Recommended Posts

Remember to always backup your database before you run destructive queries on it, be prepare to quickly revert back too.

 

In your database in the table tblservers find the old ID and the old ID.

 

Now you can quick switch them over with this query.

 

https://pastebin.com/TbJz71Cx

 

If you are concerned, run it has a transaction (https://dev.mysql.com/doc/refman/5.7/en/commit.html):

 

https://pastebin.com/wDsp0mHp

 

If it is all good run this:

COMMIT;

 

If something goes wrong you can rollback

ROLLBACK

 

 

(sorry for pastebins, cloudflare was blocking me from posting queries...)

 

- - - Updated - - -

 

By 'old id and old id' I mean, 'old id and new id' (I can't edit my post?)

 

I clearly didn't spell check either, sorry. Haha.

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