用工具备份

mysqldump备份整个数据库结构

手动备份:

SHOW CREATE TABLE 表;

根据语句再新建一个 表_new

insert into 表_new  select * from 表

rename table  表 to 表_tmp

rename table 表_new to 表

迁移站点IP替换:

UPDATE typecho_contents SET text = REPLACE(text, 'blog.ctfclub.cn', 'blog.ctfclub.cn');
UPDATE typecho_fields SET str_value = REPLACE(str_value, 'blog.ctfclub.cn', 'blog.ctfclub.cn');

最后修改:2023 年 11 月 16 日
如果觉得我的文章对你有用,请随意赞赏