【问题标题】:Sails database configuration issue with postgresql使用 postgresql 的 Sails 数据库配置问题
【发布时间】:2018-05-28 09:09:18
【问题描述】:

我将sails 升级到1.0,我解决了所有其他错误但无法解决数据库连接问题,

如果有人能对此进行回复,那将非常有帮助。

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'
  },
};

重要错误日志

【问题讨论】:

    标签: sails.js sails-postgresql


    【解决方案1】:

    我使用的密码包含% 更改密码后帆成功连接到postgresql。

    它看起来像 Sails v1Sails-pgsql 适配器的错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-23
      • 1970-01-01
      • 2017-02-13
      • 2018-08-20
      • 2016-06-30
      • 1970-01-01
      • 1970-01-01
      • 2011-03-31
      相关资源
      最近更新 更多