同类文档

WordPress博客更换域名数据库操作代码

UPDATE xg_options SET option_value = REPLACE(option_value, 'https://www.xigeshudong.com', 'https://tr.xigeshudong.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE xg_posts SET post_content = REPLACE (post_content, 'https://www.xigeshudong.com', 'https://tr.xigeshudong.com');

UPDATE xg_postmeta SET meta_value = REPLACE (meta_value, 'https://www.xigeshudong.com','https://tr.xigeshudong.com');

UPDATE xg_comments SET comment_content = REPLACE (comment_content, 'https://www.xigeshudong.com', 'https://tr.xigeshudong.com');

UPDATE xg_comments SET comment_author_url = REPLACE (comment_author_url, 'https://www.xigeshudong.com','https://tr.xigeshudong.com');

UPDATE xg_posts SET guid = REPLACE (guid, 'https://www.xigeshudong.com', 'https://tr.xigeshudong.com') WHERE post_type = 'attachment';

更多文档