Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to reset admin Confluence password using H2 database

Kristin Lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2019

We have a Confluence instance running the embedded H2 database but need to reset the admin password. I am following these steps: https://confluence.atlassian.com/conf510/restore-passwords-to-recover-admin-user-rights-829077919.html but cwd_users is not a valid table. 

1 answer

0 votes
Kiran Panduga {Appfire}
Community Champion
October 22, 2019

Hi @Kristin Lyons , 

Before connecting to the H2 database, you need to first shutdown the Confluence instance and then try connecting to the H2 database. 

If you do not shutdown the Confluence instance, then you will not be able to view the confluence tables.

then you will be able to view all the reference Confluence tables which includes cwd_users.

For connecting to H2 database, please refer to this KB article.

https://confluence.atlassian.com/conf510/embedded-h2-database-829078071.html

Thanks,

Kiran.

Kristin Lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 23, 2019

We have shut down Confluence and it is still not finding the cwd_user.

The Driver Class: org.h2.Driver

JDBC URL: jbdc:h2:~/test

Is that above information correct to connect to the embedded database?  That's what fills out by default.

 

I also tried to connect using DBVisualizer following the instructions here: https://confluence.atlassian.com/conf510/embedded-h2-database-829078071.html and am still getting an error that cwd_user cannot be found.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events