How to transfer WordPress from one host to another?

Let the source server be A and destination server be [...]