我正在尝试运行sequelize-cli,特别是npx sequelize db:migrate。
我在config/config.js中创建了一个配置文件,如下所示(显然使用了正确的凭据):
module.exports = {
development: {
username: "USER",
password: "PASSWORD",
database: "DB_NAME",
host: "HOST.net",
dialect: 'mssql',
dialectOptions: {
encrypt: "true" // bool - true - doesn't work either
}
}
};但是,我收到以下错误:
ERROR: Server requires encryption, set 'encrypt' config option to true.正如您从我的配置中看到的,我相信我已经将encrypt设置为true。这是我对如何在the docs中设置此选项的理解。
如何成功地将encrypt设置为true?
发布于 2019-05-13 21:29:11
这应该可以解决这个问题,
module.exports = {
development: {
username: "USER",
password: "PASSWORD",
database: "DB_NAME",
host: "HOST.net",
dialect: 'mssql',
dialectOptions: {
options: {
encrypt: true
}
}
}
};https://stackoverflow.com/questions/56113296
复制相似问题