diff --git a/index.js b/index.js index 635eabf..3b4aec6 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,13 @@ const mysqlSettings = { // Start server server.listen(8095); -let socketMysql = mysql.createPool(mysqlSettings); +let socketMysql = mysql.createPool({ + connectionLimit: 40, + host : mysqlSettings.host, + user : mysqlSettings.user, + password : mysqlSettings.password, + database : mysqlSettings.database +}); let listenerMysql; function handleListenerDisconnect() {