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

推荐订阅源

S
Secure Thoughts
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
P
Palo Alto Networks Blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tenable Blog
F
Full Disclosure
TaoSecurity Blog
TaoSecurity Blog
I
InfoQ
AI
AI
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
Microsoft Azure Blog
Microsoft Azure Blog
S
SegmentFault 最新的问题
Y
Y Combinator Blog
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Privacy International News Feed
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
I
Intezer
L
Lohrmann on Cybersecurity
博客园_首页
量子位
Blog — PlanetScale
Blog — PlanetScale
The Last Watchdog
The Last Watchdog
Cisco Talos Blog
Cisco Talos Blog
博客园 - 叶小钗
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Help Net Security
Help Net Security
Security Archives - TechRepublic
Security Archives - TechRepublic
Apple Machine Learning Research
Apple Machine Learning Research
W
WeLiveSecurity
N
News and Events Feed by Topic
S
Schneier on Security
T
Tor Project blog
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
T
Threat Research - Cisco Blogs
H
Help Net Security
V
V2EX
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Security @ Cisco Blogs
博客园 - Franky
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler

乌托邦是个理想国

在 RAG 系统中,我是如何设计一个 可控的 AI 自动描述机制 的 2025年终总结 2024年终总结 初探 UX工程师 的世界 使用 Animator for framer 实现 SVG 动效交付 域外杂谈 - 济州岛旅行见闻 2023 年终总结 十三朝古都 - 西安游记 香港 🇭🇰 City walk 使用议题描述模版来提升远程入职&工作体验 使用 Figma token + GitLab 创建设计系统 记录我远程办公的第一年 使用 极狐GitLab + Gitbook 发布 Handbook文档 快速上手极狐GitLab设计管理功能
通过Mysql修改Ghost的登录密码
youngbeom · 2022-02-25 · via 乌托邦是个理想国

背景

因为有太长时间没有登录Ghost博客后台,导致忘记了我的登录密码,加上最初没有给博客配置邮件客户端,所以也无法通过点击忘记密码给邮箱发邮件的方式来找回,好在我可以通过ssh登录服务器,之后通过修改Mysql的表来重置我的密码。

如何重置密码

首先我们通过ssh登录我们的博客服务器,然后链接我们的mysql,但不幸的是我甚至忘记了我的database和database name,但不要着急,我们是可以在服务器目录中找到的


第一步
首先进入mysql目录 cd /etc/mysql

之后查看里面的账号和密码 sudo vim debian.cnf

然后使用这个文件中的文件名和密码进入mysql,如果debian.cnf中的用户名为 debian-sys-miant则在在终端输入:mysql -u debian-sys-maint -p,点击回车就可以进入了

第二步
这时候就需要修改你的密码了,在进入数据库后需要选择一个database,可以先输入 show database来查看列表,我的Ghost相关的Database是 ghost_prod

之后输入 use ghost_prod来选择该Database

之后我们需要通过下面的命令来更新你的密码,
UPDATE users SET password=‘你的密码’ WHERE email='你的登录邮箱’;

但在此之前我们可以进入在线Bcrypt哈希值生成器来将密码进行哈希处理,然后将生成的哈希值填到上面命令中【你的密码】部分。

如果输入上面的命令之后展示以下信息就说明你的密码更新完成了。
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

第三步
进入  https://你的博客域名/ghost来使用新密码进行登录Ghost后台。

通过以上方法就可以完成密码重置了,如果在此过程中有遇到任何问题,欢迎邮件交流。

如果你是使用SQLite作为数据库也可以通过这篇文章来解决:Ghost管理员重置密码

相关链接