Install postgres and pgadmin

Hi, I installed both postgres and PgAdmin, but I can’t use it.

1º sudo su postgres -l
$ initdb – locale $LANG -E UTF8 -D ‘/var/lib/postgres/data/’

→ “initdb: error: directory “/var/lib/postgres/data” exists but is not empty If you want to create a new database system, remove or empty the directory “/var/lib/postgres/data” or run initdb with an argument instead of “/var/lib/postgres/data”.”

2º What is the default Postgres password?

3º pgadmin4 → “Failed to open the system default web browser. Is one installed?.”

Thank you very much

Only putting this here.
https://wiki.archlinux.org/title/PostgreSQL

Did all the googling for you :wink:

https://stackoverflow.com/questions/61303305/var-lib-postgres-data-exists-but-is-not-empty

https://stackoverflow.com/questions/27107557/what-is-the-default-password-for-postgres

https://stackoverflow.com/questions/52118562/failed-to-open-the-system-default-web-browser-is-one-installed-pgadmin4

fixed title typos