0
你好,我是在帆和真正的NodeJS新,VAR schemaAttributes = this.waterline.schema [this.identity] .attributes **水線0.10.0 - 帆v0.9.16
進出口使用MySQL作爲數據庫。
我得到這個錯誤
var schemaAttributes = this.waterline.schema[this.identity].attributes;
TypeError: Cannot read property 'schema' of undefined
,我試圖重新安裝模塊(水線),重新安裝帆和它仍然沒有工作。
這是我的適配器:
module.exports.adapters = {
'default': 'mysql',
disk: {
module: 'sails-disk'
},
mysql: {
module: 'sails-mysql',
host: 'localhost',
user: 'root',
port: '3306',
password: '**********',
database: '**********'
}
};