Search/Replace dev environment strings (e.g. filepath) on database


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

Nice tip for doing global search/replace on database, taken from the excellent warner brothers records writeup.


Copy this code and paste it in your HTML
  1. UPDATE files SET filepath = REPLACE(filepath, 'mutemath.wbrdev.com', 'mutemath');
  2. UPDATE system SET filename = REPLACE(filename, 'mutemath.wbrdev.com', 'mutemath');

URL: http://www.slideshare.net/srhaber/drupal-wbr

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.