Unable to connect to the database - NEST.JS and TypeORM
When I was facing this issue in my Nestjs and Typeorm project, my issue was my database wasn't actually created in my postgres, so I needed to create that. Note that my OS was Linux, I followed these steps for that.
sudo su - postgres
psql
to enter into postgres cli commandsCREATE DATABASE databaseName;
Note the semicolon in the end of postgres command, these are mandatory in syntax