I Forgot password of local confluence

Hello,

I installed the confluence as trial version on my local computer a week ago. I'm only one user and I'm administrator of confluence. But I forgot my password. How can I get a new password for my local confluence?

Thank you

2 answers

This widget could not be displayed.

Hi Daria,

You could try changing the password directly in the database, instructions available at http://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights

Andrew.

Hi Andrew!

Thank you veru much for this answer. But I still hava a problem:

There is no "database" folder in <confluence-home-directory>. Ande I know how to use the database for chenge my password. Maybe I need one more installation confluence ubove this?

Thank you

Hi Daria,

Just double-checking you are using the embedded HSQL database rather than an external database such as MySQL, Postgres, etc. and you're checking in the <confluence home> directory (http://confluence.atlassian.com/display/DOC/Confluence+Home+Directory) and not the <confluence installation> directory (http://confluence.atlassian.com/display/DOC/Confluence+Installation+Directory)?

If you're not using HSQL then the SQL to reset the password would need to be run against the database that you are using.

If you are using HSQL then an alternative way of accessing the database is to use HSQL's Database Manager (http://confluence.atlassian.com/display/JIRA/Running+SQL+commands+in+a+HSQL+database) - those instructions are for JIRA, but the steps are the same for Confluence:

1. Shutdown Confluence
2. Locate the HSQL JAR file (in my Confluence 4.1.4 installation it's <confluence installation>/WEB-INF/lib/hsqldb-2.2.4.jar
3. From a command line run java -cp ./hsqldb-2.2.4.jar org.hsqldb.util.DatabaseManager -user sa -url jdbc:hsqldb:<confluence home>/database/confluencedb;hsqldb.tx=MVCC
4. Execute the relevant SQL in the HSQL Database Manager GUI
5. Exit the Database Manager
6. Start Confluence

If none of the above works then you're probably looking at recovering from backup (if you have one) or uninstalling and re-installing from scratch. Depending on how much work you would lose if you had to re-install from scratch a re-install may be less effort than resetting the admin password?

Does that help?

Andrew.

"Running SQL commands in a HSQL database" --> page deleted ... :-(

This widget could not be displayed.

You can also refer to this:

For the Evaluation Embedded HSQL Database

To change the password to admin for a given username:

  1. Shut down Confluence.
  2. Open <confluence-home>/database/confluencedb.script, or confluencedb.log if the .script file looks empty.
  3. Search for:
    INSERT INTO CWD_USER VALUES(
    

    Keep searching until you find the appropriate user, then replace their password with this hash value:

    x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A==
  4. Save the file.
  5. Restart Confluence.

FYI, Confluence Home folder is defined in <Confluence install folder>/confluence/WEB-INF/classes/confluence-init.properties file.

Note that the above does not work in recent versions of Confluence, as the H2 database is in a binary file.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

505 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you