MySQL Find and Replace

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

This is useful for when a Wordpress environment goes live; typically the uploads have an absolute URL.

Copy this code and paste it in your HTML
  1. UPDATE files SET filepath = REPLACE(filepath,'path/to/search','path/to/replace');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.