You're going to need to take a downtime. It's going to take a while depending on what your network speed is. I'm going to assume your running MySQL on Linux/Unix. Here's the process I use:
- Stop the mysql daemon on the source host.
- Make a tmp folder on your target host to receive the files.
- Use screenscreen to make a shell session that will survive should your ssh get disconnected.
- Use rsyncrsync to transfer the files between hosts. Something like: rsync -avhP source user@targethost:/path/to/folder/rsync -avhP source user@targethost:/path/to/folder/
- Run your test cases to make sure you didn't lose anything in the transfer.
Then proceed as usual getting the local MySQL set up.
*Note: you can also use the -c parameter with rsync to add a checksum to the transfer, however this will be sloooow depending on CPU speed.
You're going to need to take a downtime. It's going to take a while depending on what your network speed is. I'm going to assume your running MySQL on Linux/Unix. Here's the process I use:
- Stop the mysql daemon on the source host.
- Make a tmp folder on your target host to receive the files.
- Use screen to make a shell session that will survive should your ssh get disconnected.
- Use rsync to transfer the files between hosts. Something like: rsync -avhP source user@targethost:/path/to/folder/
- Run your test cases to make sure you didn't lose anything in the transfer.
Then proceed as usual getting the local MySQL set up.
*Note: you can also use the -c parameter with rsync to add a checksum to the transfer, however this will be sloooow depending on CPU speed.
You're going to need to take a downtime. It's going to take a while depending on what your network speed is. I'm going to assume your running MySQL on Linux/Unix. Here's the process I use:
- Stop the mysql daemon on the source host.
- Make a tmp folder on your target host to receive the files.
- Use screen to make a shell session that will survive should your ssh get disconnected.
- Use rsync to transfer the files between hosts. Something like: rsync -avhP source user@targethost:/path/to/folder/
- Run your test cases to make sure you didn't lose anything in the transfer.
Then proceed as usual getting the local MySQL set up.
*Note: you can also use the -c parameter with rsync to add a checksum to the transfer, however this will be sloooow depending on CPU speed.