diff --git a/src/config.ts b/src/config.ts index 0a8c558..188812b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,6 +6,7 @@ const config = { }, mysql: { host: 'localhost', + port: 3306, database: '', user: 'root', password: '' diff --git a/src/lib/Database/MySQLConnection.ts b/src/lib/Database/MySQLConnection.ts index b8af0e9..b72b181 100644 --- a/src/lib/Database/MySQLConnection.ts +++ b/src/lib/Database/MySQLConnection.ts @@ -27,6 +27,7 @@ class MySQLConnectPool { return mysql.createPool({ host: config.mysql.host, database: config.mysql.database, + port: config.mysql.port, user: config.mysql.user, password: config.mysql.password, waitForConnections: true,