2

I have installed Postgres 13 in windows 10. Configured all the right credentials in the environment file of the project. The project uses the below dependencies and it was created in ubuntu.

"pg": "^7.4.3",
"pg-hstore": "^2.3.2",
"sequelize": "4.38.0",
"sequelize-cli": "^6.2.0"

I'm trying to set it up in windows. And getting the below error in windows 10.

Error: Unknown authenticationOk message typeMessage { name: 'authenticationOk', length: 23 }

When I hit npx sequelize db:migrate in the terminal for migrating the tables in the database.

4

2 回答 2

6

I was able to fix this by upgrading pg from "^7.4.3" to "^8.7.1".

于 2021-10-03T21:06:25.143 回答
0

This issue comes if your Database Host is incorrect. In my case I'm using Docker and change DB host in consule file from localhost to your DB server.

于 2021-12-03T05:32:02.987 回答