Error: Role "root" does not exist
Hi, I am trying to set up a project with Drizzle Studio but when I try to start the db with Podman (podman compose up --detach && drizzle-kit push) an Error occurs: PostgresError: role "root" does not exist.
.env: DATABASE_URL="postgres://root:mysecretpassword@localhost:5432/local"
1 Reply
So
root
is your user. In, MySQL that would the default but for postgres it should just be postgres
.
postgres://<user>:<password>@<host>:<port>/<database>
If you want to change your user, you'll need run some SQL to create it. But I'll let you search for that.