我正在将 FeathersJS 系统从 MySQL 转换为 Postgres 并面临一些问题。
更改连接字符串后
"mysql": "mysql://user:password@server:port/database"
至
"postgres": "postgres://user:password@server:port/database"
at config/default.json
,我把方言从atmysql
改为pg
at feathers/sequelize.js
。
但是当我开始时,npm run dev
我收到了以下 JSON 错误消息,以前从未见过。
{
"_bitField":18087936,
"_fulfillmentHandler0":{
"name":"SequelizeConnectionError",
"parent":{
"name":"error",
"length":93,
"severity":"FATAL",
"code":"3D000",
"file":"postinit.c",
"line":"855",
"routine":"InitPostgres"
},
"original":{
"name":"error",
"length":93,
"severity":"FATAL",
"code":"3D000",
"file":"postinit.c",
"line":"855",
"routine":"InitPostgres"
}
},
"name":"SequelizeConnectionError",
"parent":{
"name":"error",
"length":93,
"severity":"FATAL",
"code":"3D000",
"file":"postinit.c",
"line":"855",
"routine":"InitPostgres"
},
"original":{
"name":"error",
"length":93,
"severity":"FATAL",
"code":"3D000",
"file":"postinit.c",
"line":"855",
"routine":"InitPostgres"
}
}
在研究了一下没有成功之后,我想问一下是否有人看过这个消息。
pg
我已经尝试过 as和postgres
at的方言feathers/sequelize.js
,只是为了检查它是否会有所作为,但没有。