From 5c7f7316d64989dbb5b4a643a085a6e111320060 Mon Sep 17 00:00:00 2001 From: Elliot Konetzni Date: Mon, 30 Nov 2020 10:52:20 +0100 Subject: [PATCH] MYSQL.ConnectionConfig => MYSQL.ConnectionOptions --- src/drivers/MysqlDriver.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/MysqlDriver.ts b/src/drivers/MysqlDriver.ts index a49effa..665f5e9 100644 --- a/src/drivers/MysqlDriver.ts +++ b/src/drivers/MysqlDriver.ts @@ -466,7 +466,7 @@ export default class MysqlDriver extends AbstractDriver { public async ConnectToServer(connectionOptons: IConnectionOptions) { const databaseName = connectionOptons.databaseNames[0]; - let config: MYSQL.ConnectionConfig; + let config: MYSQL.ConnectionOptions; if (connectionOptons.ssl) { config = { database: databaseName, @@ -476,7 +476,7 @@ export default class MysqlDriver extends AbstractDriver { ssl: { rejectUnauthorized: false, }, - timeout: 60 * 60 * 1000, + connectTimeout: 60 * 60 * 1000, user: connectionOptons.user, }; } else { @@ -485,7 +485,7 @@ export default class MysqlDriver extends AbstractDriver { host: connectionOptons.host, password: connectionOptons.password, port: connectionOptons.port, - timeout: 60 * 60 * 1000, + connectTimeout: 60 * 60 * 1000, user: connectionOptons.user, }; }