我正在测试nestjs,但我对如何创建与azure synapse的连接以从表中获取数据有疑问,这可能吗? 我知道synapse是mysql类型的,我正在使用这个orm配置,但我得到这个错误。
如果有更好的方法,我希望能被告知,非常感谢。
"type": "mysql",
"host": "host",
"username": "username",
"password": "password",
"database": "database",
"port": 1433,
"synchronize": true,
"entities": ["src/modules/**/**/*.entity{.ts,.js}"],
"migrations": ["src/database/migrations/*{.ts,.js}"],
"seeds": ["./src/database/seeds/*{.ts,.js}"],
"factories": ["./src/database/factories/*{.ts,.js}"],
"cli": {
"entitiesDir": "src/entity",
"migrationsDir": "src/database/migrations"
"extra": {
"encrypt": true
[Nest] 78444 - 09/03/2022 23:11:31 [TypeOrmModule] Unable to connect to the database. Retrying (2)... +9342ms
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)