root
user for this postgres database. To do so, we’ll create a script to initialize a database called root
.
postgres:14-bullseye
image from Docker. We’ll set the POSTGRES_USER
as root
, the POSTGRES_PASSWORD
as postgres
, and POSTGRES_DB
as root
.
psql -h localhost -p 5432
to enter the postgres shell.
If you’re prompted to enter a password, enter in postgres
.