MENU

Typecho更换域名

补充,以前没搞完整,现在 ii.do 换成 ww.ws 了,记一下

1、修改设置中的本站域名:位置typecho_options表

UPDATE `typecho_options` SET `value` = '新域名' WHERE `typecho_options`.`name` = 'siteUrl' AND `typecho_options`.`user` =0;

2、修改文章中相关域名:位置typecho_contents表

UPDATE `typecho_contents` SET `text` = REPLACE(`text`,'旧域名','新域名');

3、修改管理员个人网站:位置typecho_users表

UPDATE `typecho_users` SET `url` = REPLACE(`url`,'旧域名','新域名');

4、修改评论中相关域名:位置typecho_comments表

UPDATE `typecho_comments` SET `url` = REPLACE(`url`,'旧域名','新域名');
UPDATE `typecho_comments` SET `text` = REPLACE(`text`,'旧域名','新域名');
UPDATE `typecho_comments` SET `mail` = REPLACE(`mail`,'旧域名','新域名');

5、修改文章头图域名:位置typecho_fields表

UPDATE `typecho_fields` SET `str_value` = REPLACE(`str_value`,'旧域名','新域名');
添加新评论

已有 24 条评论
  1. 改了字体吗

  2. 评论没有汉字不允许提交。https://www.mwbo.com/::quyin:1huaji::

    1. @木屋先生你是沙雕吧\#(中指)

  3. 评论没有汉字不允许提交。::quyin:1huaji::https://moe.ma/437.html

    1. @呆哥其实压根不用选择某个表,进入对应数据库直接执行SQL就完事了\#(邪恶)

    2. @呆哥你这个bo.ke域名挺不错a::quyin:1huaji::