Unable to connect to database
IbrahimShamma99 opened this issue · 2 comments
IbrahimShamma99 commented
> nestjs-realworld-example-app@1.0.0 start /home/ibrahim/Repos/nestjs-realworld-example-app
> node index.js
[Nest] 13547 - 01/31/2020, 1:08 PM [NestFactory] Starting Nest application...
[Nest] 13547 - 01/31/2020, 1:08 PM [TypeOrmModule] Unable to connect to the database. Retrying (1)... +42ms
Error: No connection options were found in any of configurations file.
at ConnectionOptionsReader.<anonymous> (/home/ibrahim/Repos/nestjs-realworld-example-app/src/connection/ConnectionOptionsReader.ts:41:19)
at step (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:133:27)
at Object.next (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:114:57)
at fulfilled (/home/ibrahim/Repos/nestjs-realworld-example-app/node_modules/tslib/tslib.js:104:62)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
[Nest] 13547 - 01/31/2020, 1:08 PM [InstanceLoader] TypeOrmModule dependencies initialized +1ms
caiopiassali commented
Rename ormconfig.json.example
to ormconfig.json
.
lujakob commented
The error message is straight forward: "Unable to connect to the database." - did you rename the ormconfig.json.example as mentioned in the readme. Did you alter the DB config to your DB?