Skip to content

Instantly share code, notes, and snippets.

@johnidm
Last active November 5, 2025 13:01
Show Gist options
  • Save johnidm/87379025c891878022706a6f2afc0ef7 to your computer and use it in GitHub Desktop.
Save johnidm/87379025c891878022706a6f2afc0ef7 to your computer and use it in GitHub Desktop.
Retrieve credentials stored in DBeaver

How to recover DB credentials settings stored in DBeaver

If you forgot your password, which is my case, or need to migrate database connection settings from another DBeaver installation, these steps may help.

  • Step 1: Open DBeaver Press: File > Export > DBeaver > Project.
  • Step 2: Change the name of the export file to .zip, and unzip.
  • Step 3: Copy \projects\General\.dbeaver\credentials-config.json and \projects\General\.dbeaver\data-sources.json to the root folder or any other folder you prefer.
  • Step 4: Run the command openssl aes-128-cbc -d -K babb4a9f774ab853c96c2d653dfe544a -iv 00000000000000000000000000000000 -in "credentials-config.json"

Done, it will output to the terminal as default, if you want to save in a file add > chosen_filename.json to the stp 4 command.

The data-sources.json file contains all database connection settings. To see the complete database configurations, you need to combine the data-sources.json file with the retrieved credentials file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment