Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dotherightthing/dd7fca99da899d14b6665fb7e972cbd9 to your computer and use it in GitHub Desktop.
Save dotherightthing/dd7fca99da899d14b6665fb7e972cbd9 to your computer and use it in GitHub Desktop.
[Migrate WordPress database to a new local host] #wordpress

Migrate WordPress database to a new local host

Created: 2017.03.28

This is also useful if you rename your virtual host, then wonder why WordPress isn't working anymore!

  1. Download interconnectit/Search-Replace-DB
  2. Extract to a folder within your WordPress installation
  3. Point a browser at the local folder URL
  4. The program will automatically the database details stored in wp-config.php
  5. Replace old.virtualhost.name with new.virtualhost.name

Note: for deployment to a remote host, use UpdraftPlus instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment