It seems digital ocean doesn’t allow you to download a full local copy of the site, and it isn’t clear how to point mysql to another webhost either. Any tips?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
DigitalOcean does not block anyone from migrating their websites / applications around - WordPress included.
There are a few ways to do so - this is one.
cd /PATH/TO/WEBROOT
This will drop a copy of your database into the same directory as your wordpress installation. Please note this works only for a standard WordPress installation - This can also be done quite easily with phpMyAdmin if it is available.
zip -r ../html.zip /PATH/TO/WEBROOT
This will place a *.zip archive one directory up.
move the archive to the new server
scp ../html.zip USERNAME@IP_OR_HOSTNAME:/PATH/TO/WEBROOT
Leave your droplet
Within the new host create your new database using whichever tool is available or proffered
ssh into your new host and
cd /PATH/TO/WEBROOT
unzip html.zip -d ./
copy the old wp-config
cp wp-config.php wp-tempfile
- we are only going to use this temporarilyedit the wp-config.php file updating the database connection details with that of your new host
upload the database
rm -v wp-tempfile html.zip
Please note that this may need to be adjusted to suite your server setup for the source and destination server and wordpress installation - i.e. you may need to install and configure NGINX/APACHE, MySQL/MariaDB etc…
Another solution is to use something like this
https://en-ca.wordpress.org/plugins/wp-migrate-db/
Hey there
Please check out the article below ,it might help http://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/