Can't locate the default postgres password

Keywords: PostgreSQL - Virtual Machines - How to - Credentials
I downloaded bitnami-postgresql-10.5-0-r40-linux-debian-9-x86_64 and started it in VMWARE. Everything seems ok but I can’t access the existing postgres application. The instructions on the web site say a password will be generated and provided at startup, but nothing was provided. I reset the Linux password for postgres and can log in to the OS as postgres, but I can’t do anyting with psql.

Since the posted instructions for finding the default application password for postgres don’t seem to work, how do I get the password?

Hi @blakemail,

If you used the Bitnami Virtual Machine in your local computer, you should have received the configured password in the login screen.

Apart from that, you should also have a bitnami_credentials file in the home folder of the bitnami user (/home/bitnami/bitnami_credentials). In case you don’t have that file, can you share the content of the boot logs

sudo cat /opt/bitnami/var/log/*
1 Like

The password for bitnami user came up on the login screen. Nothing about postgres came up. The issue is not the postgres OS user ID/password but the password for the the database postgres user.

I’ll look for the files you mentioned.

The credential file had the password. I was able to log in and change the db user’s password.

Hi @blakemail,

The credentials that are shown in the login screen should be the same one that is in the credentials file. That password is the one we use when configuring PostgreSQL at boot time. You will need to use it to connect to the database

Is there anything more we can help you with?

No, I’m all set now. Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.