From fea47843d752535e79376d97d7a30e886e0ec980 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 5 Jan 2022 10:56:14 +0000 Subject: [PATCH] Change mysql library to mysql2 as it is more maintained and support latest mysql authention (#862) * Use mysql2 lib * fix pool on acquire event cause MaxListenersExceededWarning (#854) before: every query need to register pool on acquire event to specify queryFormat based on payload type will cause MaxListenersExceededWarning after: from https://www.npmjs.com/package/mysql#pooling-connections pool.query is a shortcut for pool.getConnection() -> connection.query() -> connection.release() so use pool.getConnection and then set queryFormat before query method be called Co-authored-by: Dave Conway-Jones * fix mysql require * Add decimalNumbers flag true to mysql beta * mysql remove old Timeout option, clarify timezone options * add mysqlConnectionLimit settings option. Co-authored-by: saknarak --- storage/mysql/68-mysql.html | 3 +- storage/mysql/68-mysql.js | 106 ++++++++++------------ storage/mysql/locales/en-US/68-mysql.json | 3 +- storage/mysql/package.json | 4 +- 4 files changed, 53 insertions(+), 63 deletions(-) diff --git a/storage/mysql/68-mysql.html b/storage/mysql/68-mysql.html index 1bfaf30b..ac437e31 100644 --- a/storage/mysql/68-mysql.html +++ b/storage/mysql/68-mysql.html @@ -22,7 +22,7 @@
- +
@@ -32,6 +32,7 @@
+