Confluence管理员密码恢复方法
1、获取admin账户ID
Copymysql> select u.id, u.user_name, u.active from cwd_user u \
join cwd_membership m on u.id=m.child_user_id join cwd_group g on m.parent_id=g.id join cwd_directory d on d.id=g.directory_id \
where g.group_name = 'confluence-administrators' and d.directory_name='Confluence Internal Directory';
+--------+-----------+--------+
| id | user_name | active |
+--------+-----------+--------+
| 229377 | admin | T |
+--------+-----------+--------+
1 row in set (0.00 sec)
2、重置admin账户密码
Copymysql> update cwd_user set credential =
'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='
where id=xxxxxx;
注意次数xxxxxx
为上一步的id
如果你的密码是{PKCS5S2}前缀开头的,则用下面的SQL:
Copymysql> update cwd_user set credential =
'{PKCS5S2}ltrb9LlmZ0QDCJvktxd45WgYLOgPt2XTV8X7av2p0mhPvIwofs9bHYVz2OXQ6/kF'
where id=xxxxxx;
这个管理员密码为 `Ab123456
评论区