diff --git a/databases/mysql_db.ts b/databases/mysql_db.ts index 5cc46a76..bec0b13e 100644 --- a/databases/mysql_db.ts +++ b/databases/mysql_db.ts @@ -55,9 +55,14 @@ export const Database = class extends AbstractDatabase { } async init() { - if("speeds" in this._mysqlSettings){ + if("speeds" in this._mysqlSettings) { delete this._mysqlSettings.speeds } + + if ("filename" in this._mysqlSettings) { + delete this._mysqlSettings.filename + } + this._pool = createPool(this._mysqlSettings as ConnectionConfig); const {database, charset} = this._mysqlSettings;