Wordpress SQL Find & Replace


/ Published in: SQL
Save to your folder(s)

Useful for when moving a Wordpress installation from, e.g., development to live. 'wp_posts' is the table name, 'guid' is the table field. Alter as appropriate.


Copy this code and paste it in your HTML
  1. UPDATE wp_posts SET guid = REPLACE(guid, "dev.domain.co.uk", "www.domain.co.uk")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.