惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
B
Blog
The Register - Security
The Register - Security
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
F
Full Disclosure
The GitHub Blog
The GitHub Blog
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
美团技术团队
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
D
DataBreaches.Net
Martin Fowler
Martin Fowler
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
博客园 - 【当耐特】
U
Unit 42
月光博客
月光博客
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
博客园 - 聂微东
I
InfoQ
B
Blog RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
Cyberwarzone
Cyberwarzone
V
V2EX
S
Securelist
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Security @ Cisco Blogs
PCI Perspectives
PCI Perspectives
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Heimdal Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tor Project blog

记录生活,精彩一刻 - 数据库

宝塔面板强制安装 MySQL8.0 Typecho 数据库字符集导致Emoji表情评论报错 Typecho 网站更换域名操作指南
Typecho更换新域名教程 数据库篇
Huo · 2022-08-28 · via 记录生活,精彩一刻 - 数据库

TYPECHO数据库更换域名教程

Typecho-phpMyAdmin修改数据库篇

我是用宝塔面板的,请设置phpMyAdmin启用公共访问权限。

通过phpMyAdmin执行sql语句对数据库的方法对文章和评论的相关域名进行替换。

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

UPDATE `typecho_options` SET `value` = '新域名' WHERE `typecho_options`.`name` = 'siteUrl' AND `typecho_options`.`user` =0;
ps:此处新域名建议加上https:// 也可以博客后台设置更改

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

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

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

UPDATE `typecho_users` SET `url` = REPLACE(`url`,'旧域名','新域名');
ps:建议网站后台修改即好。

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

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

以上操作都可以在phpmyadmin进行。选择对应的数据库,执行sql即可

转自Lam's Blog