最近更换了新的主机和新的域名。以前的数据也有少少备份不能恢复到全部,这里写一下搬家后进行的一些操作把图片都改过来!

原理

MySQL数据库批量替换字符。

方法

PLAINTEXT
UPDATE `typecho_contents` SET `text` = REPLACE(`text`,'xiaojun.org','jinjun.top');
点击展开查看更多

typecho.png
typecho.png

备注

操作前一定要备份数据库! WordPress也可以借鉴此方法,自行替换相应的值即可。typecho批量替换字符

版权声明

作者: JunYan`Blog

链接: https://www.jinjun.top/posts/6a2b/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

评论

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键