0

So I get this 2 error:
error: A hook (orm) failed to load!
error: error: password authentication failed for user "root"

This is my connections.js file:

module.exports.connections = {
PostgresqlServer: {
    adapter: 'sails-postgresql',
    host: 'localhost',
    //user: 'Testeur1', // optional
    //password: 'eniso2020', // optional
    //database: 'PatientsDB' //optional
  }
  };

and this is the Patients.js file in the models folder:

module.exports = {

  attributes: {

  },
  connection:'PostgresqlServer'
};

Sails v 0.12.14

Any idea what can cause this problem ?

Thanks

Ali SALEM
  • 1
  • 3
  • Uncomment this block of code `//user: 'Testeur1', // optional //password: 'eniso2020', // optional //database: 'PatientsDB' //optional` and ensure your db credentials are correct. – Glen Mar 16 '18 at 16:40
  • so when i do that I still get the first error and the second error just become: error: password authentication failed for user "Testeur1" . – Ali SALEM Mar 16 '18 at 16:51
  • and are you sure the user and password for the database are correct? – Glen Mar 16 '18 at 16:51
  • yeah I think so, here's a screen shot of postgres interface (https://ibb.co/dor7AH) – Ali SALEM Mar 16 '18 at 16:57
  • The owner and database look fine, sails is suggesting the issue is with your password. – Glen Mar 16 '18 at 17:08

0 Answers0