[英]'Handshake inactivity timeout' using TypeOrm and AWS RDS Aurora MySQL instance
嘗試使用 TypeOrm 連接到 AWS RDS Aurora DB MySQL Handshake inactivity timeout
出現Handshake inactivity timeout
錯誤。
code: 'PROTOCOL_SEQUENCE_TIMEOUT',
fatal: true,
timeout: 10000
嘗試使用默認的 10 秒和我自己的 15 秒超時。
ormconfig.json
文件:
{
"type": "mysql",
"host": "host connection string",
"port": 3306,
"username": "xxxx",
"password": "xxxx",
"database": "xxxx",
"synchronize": true,
"logging": true,
"connectTimeout": 15000,
"entities": [
"src/entity/**/*.ts"
],
"migrations": [
"src/migration/**/*.ts"
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"entitiesDir": "src/entity",
"migrationsDir": "src/migration",
"subscribersDir": "src/subscriber"
}
}
能夠使用 Linux MySQL 客戶端 CLI 連接到實例,甚至嘗試使用同一 VPC 中的 ECS 連接到數據庫,但出現相同的錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.