1、获取admin账户ID
mysql> 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账户密码
mysql> update cwd_user set credential =
'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='
where id=xxxxxx;
注意次数xxxxxx
为上一步的id
如果你的密码是{PKCS5S2}前缀开头的,则用下面的SQL:
mysql> update cwd_user set credential =
'{PKCS5S2}ltrb9LlmZ0QDCJvktxd45WgYLOgPt2XTV8X7av2p0mhPvIwofs9bHYVz2OXQ6/kF'
where id=xxxxxx;
这个管理员密码为 Ab123456
标签:set,name,cwd,confluence,管理员,user,mysql,密码恢复,id From: https://www.cnblogs.com/91donkey/p/16805400.html