confluence管理员密码失效重置密码

wiki 重置 admin 用户密码

在 /var/atlassian/application-data/confluence/confluence.cfg.xml 文件中查看 mysql root 用户的密码

重置 wiki admin 用户密码

mysql> use confluence

获取 admin 用户 id:

1
2
3
4
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';

将 admin 用户密码重置为 admin

1
2
3
update cwd_user set credential =
'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='
where id=xxxxxx;

注意此处xxxxxx 为上一步的 id