跳转到帖子

Featured Replies

  • 网站管理

Typecho博客切换域名后会导致博客中的图片链接还是老博客的,这样就会导致我们打开图片就会出现空白报错,我们可以通过sql语句来执行替换

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`,'旧域名','新域名');

成长就是不断打破并重建三观

  • 查看数 0
  • 已创建
  • 最后回复
游客
回帖…

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.