From 8a3fa20408e9b7f28f0f36201e885e793b50d5f1 Mon Sep 17 00:00:00 2001 From: Dunak <19434539+dunak-debug@users.noreply.github.com> Date: Mon, 25 Oct 2021 10:55:42 +0200 Subject: [PATCH] fix(pool): Remove default database value from config --- src/pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pool.js b/src/pool.js index a3129a3..4aca3f2 100644 --- a/src/pool.js +++ b/src/pool.js @@ -31,7 +31,7 @@ const createConnection = () => { port: options.port || 3306, user: options.username || options.user || options.userid || 'root', password: options.password || options.pass || '', - database: options.endpoint || options.database || 'es_extended', + database: options.endpoint || options.database, charset: 'utf8mb4_unicode_ci', connectTimeout: 30000, ...options.options, @@ -53,7 +53,7 @@ const createConnection = () => { port: options.hosts[0].port || 3306, user: options.username || 'root', password: options.password || '', - database: options.endpoint || 'es_extended', + database: options.endpoint, charset: 'utf8mb4_unicode_ci', connectTimeout: 30000, ...options.options,