Skip to content

Instantly share code, notes, and snippets.

@tessalt
Created July 22, 2013 16:54
Show Gist options
  • Save tessalt/6055522 to your computer and use it in GitHub Desktop.
Save tessalt/6055522 to your computer and use it in GitHub Desktop.
setup local wp from existing site #wp
  • grab .sql dump from phpmyadmin
  • find and replace root url in .sql file
  • grab new local wordpress copy curl -O http://wordpress.org/latest.tar.gz && tar xvzf latest.tar.gz && rm latest.tar.gz
  • create new local db in /MAMP
  • open localhost:8888/path/to/wordpress
  • create wp-config either through interface or edit file (reference to local db)
  • run install
  • import db
  • login
  • check settings -> general to make sure site url is correct
  • refresh permalinks
  • pull down uploads folder
  • deal with user issues in db if necessary

Reset password in DB

  • select MD5 encode type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment