[Nest] 487576 [TypeOrmModule] Unable to connect to the database. Retrying (9)...

See original GitHub issue

Issue type:

[ x] question [ ] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ x] mssql [ ] mysql / mariadb [ ] oracle [ ] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[ ] latest [ ] @next [x ] 0.2.24 (or put your version here)

Steps to reproduce or a small repository showing the problem:

Hi! I have problem with connection to database. On first server application start without erorrs and don’t have problems with connection to db. On the second server I have error ‘Unable to connect to the database’. On second server I can check connection in manager DB, and it works. What can go wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

20reactions
ayaanquicommented, Jan 9, 2021

I was facing a similar problem and using the mysql2 module helped me.

$ npm install mysql2 --save
$ npm uninstall mysql --save
9reactions
imnotjamescommented, Sep 30, 2020

You can also try --tls-min-v1.0 when running node

https://github.com/nodejs/node/issues/27384

Read more comments on GitHub >

github_iconTop Results From Across the Web

NestJS - [TypeOrmModule] Unable to connect to the database ...
Check if you have synchronize connection option set to true in database configuration. Make it to false. It worked for me.
Read more >
TypeORM and MySql Configuration for NestJS - Medium
[Nest] 16874 - 01/07/2021, 11:33:55 AM [TypeOrmModule] Unable to connect to the database. Retrying (1)... +9ms. Error: ER_ACCESS_DENIED_ERROR: Access denied ...
Read more >
Postgres (pg) "missing" after upgrade from 8.4.7 to 9.0.4 - Reddit
[Nest] 2279561 - 07/14/2022, 1:56:59 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1).
Read more >
NestJS Tutorial #9 - Connecting to MySQL using TypeORM
Your browser can't play this video. Learn more. Switch camera.
Read more >
API with NestJS #2. Setting up a PostgreSQL database with ...
To make the managing of a database more convenient, we use an ... [Nest] 22384 - 07/04/2021, 09:47:54 [TypeOrmModule] Unable to connect to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found