Closed Rafnuss closed 8 years ago
Your test is not sufficient. Sequelize does not actually connect to the database when you create a Sequelize instance.
Instead try to connect with the psql command:
psql -d euro2016 -h localhost -U euro2016
Or use pgAdmin III (graphical user interface)
Thanks for the help. Ok, I understand what you mean. But I can connect as you suggested, it works. Have you another idea ?
That's strange. Can you give me your Node.js and PostgreSQL version?
node --version
psql -d euro2016 -h localhost -U euro2016 -c "SELECT version();"
v6.2.0
and
PostgreSQL 9.4.8 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.7.2-5) 4.7.2, 64-bit
Seems reasonable.
I don't do anything special in my code to connect to the database, so it should work regardless whether you connect to the databse in the Node REPL or with node index.js
.
ok, no pb. I'll use my own code for this year. Shame, le demo seemed really nice ! Nice work !
Hi, Thank you very much for this code! This is really cool! I'm trying to install in on a VPS but I'm getting this error.
I have set the config file :
When I run
nodejs index.js
, I get:Unhandled rejection SequelizeConnectionError: password authentication failed for user "euro2016"
If try to directly open the database from node js, it seems to work:
I'm quite new to nodejs and very new to PostgreSQL. Hope this is the right place to put the question.