node.js - Sequelize and peer authentication for Postgres? -


my postgres database has been set use peer authentication , not sure how tell sequelize use method?

currently using following:

new sequelize("postgres://127.0.0.1/dbname", {}); 

i tried following did not work

new sequelize("postgresql:///dbname?host=/var/lib/postgresql"); 

in both cases error:

sequelizebaseerror: password authentication failed user" 

can help?

a bit more exploration shows following job:

new sequelize('mydb', undefined, undefined, {      host: '/var/run/postgresql'      dialect: 'postgres'    }); 

the actual connection handled package 'pg' , documented in issue.

note, have tested work pg@6.4.1 , sequelize@4.4.2.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -