Update WordPress image URLs after URL change

If you've moved your WordPress over to another domain or changed the URL you might end up with a situation where the images that have been uploaded are pointing to the old URL. In this case, you can run the following command in the SQL section in PHPMyAdmin:

UPDATE wpwc_posts SET post_content=(REPLACE (post_content, 'OLD_URL','NEW_URL'));

Be sure to replace OLD_URL and NEW_URL with the appropriate values.