2

I upgrade sails to 1.0, I resolved all the other errors but not able to resolved database connection issue,

It will be really helpful if anyone can reply on this.

module.exports.datastores = {
  localDiskDb: {
    adapter: 'sails-disk'
  },
  postgreSql: {
    adapter: 'sails-postgresql',
    // url: 'postgresql://admin:root@localhost:5432/testdb',
    // ssl: true,
    host: 'localhost',
    user: 'admin',
    password: 'root',
    database: 'testdb'
  },
};

Important Error Logs

enter image description here

1 Answer 1

1

I was using password which contains % after changing the password sails successfully connected to postgresql.

It mostly looks like bug with Sails v1 or Sails-pgsql adapter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.