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

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

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

宝塔面板强制安装 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