Home:ALL Converter>SailsJS: not able to connect to postgresql database

SailsJS: not able to connect to postgresql database

Ask Time:2020-11-01T20:24:54         Author:ducktyped

Json Formatter

We have SailsJS app with postgresql adapter. Requests made to server chokes at database query via models. i.e Users.find(). Database server is up and running, connection string is correct and one can connect to database using same connection string.

datastore has default adaptor set to sails-postgresql. If database adaptor is changed to mysql or default sails-disk, it works. But sails-postgresql is not

Author:ducktyped,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64631852/sailsjs-not-able-to-connect-to-postgresql-database
yy