我想要更新在phpMyAdmin中运行SQL查询的链接
http://local.dev/wp-content/uploads/sites/4/2014/11/image.jpg
到此:
http://local.dev/wp-content/uploads/2014/11/image.jpg
我只需要从链接中删除网站/。
我确实尝试了以下内容:
UPDATE wp_posts SET guid = REPLACE (guid, 'http://local.dev/wp-content/uploads/sites/4', 'http://local.dev/wp-content/uploads') WHERE post_type = 'attachment';
答案 0 :(得分:0)