2017-04-18 15:53:13
按步骤执行如下命令:
cd approot/data/content/data/
// 进入ghost博客的数据库存放路径:
sqlite3 ghost.db
//打开sqlite数据库
select * from users;
//查询用户
update users set password = "$2a$10$8KF1xT5X9nPeYNVQzEfBKu1wdH5IuQE5JRnVlf1S5vwd48P6gtepq" where id = 1;
// 更新密码 这里的密码为 blog-admin
update users set status = "active" where id = 1;
// 解锁用户
.quit
// 退出
然后就可以用之前的账号和blog-admin登陆了
转自 http://timecho.me/make-die/Ghost-Reset-Password.html
备注下sqlite3命令
.exit
.help 查看帮助 针对命令
.database 显示数据库信息;包含当前数据库的位置
.tables 或者 .table 显示表名称 没有表则不显示