diff --git a/lib/connectors/mysql-connector.ts b/lib/connectors/mysql-connector.ts index f699f15..27bec58 100644 --- a/lib/connectors/mysql-connector.ts +++ b/lib/connectors/mysql-connector.ts @@ -10,6 +10,7 @@ export interface MySQLOptions extends ConnectorOptions { username: string; password: string; port?: number; + charset?: string; } export class MySQLConnector implements Connector { @@ -38,6 +39,7 @@ export class MySQLConnector implements Connector { db: this._options.database, password: this._options.password, port: this._options.port ?? 3306, + charset: this._options.charset ?? "utf8", }); this._connected = true;