update urls in database after importing to local to solve redirection issues

Am setting up a local development environment for WordPress, using VVV vagrant. I already exported the original database from production and imported it in the local placeholder website. For single-site installs, just replace the “siteurl” value in the “wp-options” from http://www.liveproductionsite.com to http://localtestsite.test For multisite-installs, there are a few more hoops to jump through. Remember: …

Show databases on vagrant server

To show which databases exist on a vagrant virtual server, do the following steps. This supposes you already have a vagrant server up and running, for example VVV. It will list all current databases, like those of wordpress installs. If you reprovision your vagrant, you should know that it will try to recreate the placeholder …