- Snippet Path
Reset bitnami postgres password on a container shell
- Authors
- ← Back to snippet list
- Name
- Aryan Ebrahimpour
- GitHub
- @avestura
- Snippet
- Change directory to configuration folder
- Trust local connection in
pg_hba
- Reload configuration using
pg_ctl
shell
# pg reset pass local for bitnami:
cd /opt/bitnami/postgresql/conf
sed -i '/^local/s/.*/local all all trust/' pg_hba.conf
pg_ctl reload -D /bitnami/postgresal/data
psql -U postgres # doesn't require password