7953-devToTest_2438 #2942
|
@ -342,6 +342,9 @@ exports.initialize = function initialize(dataSource, callback) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Code extracted from original Loopback MySQL connector
|
||||||
|
// since it cannot be reused, please try not to alter it.
|
||||||
|
// https://github.com/loopbackio/loopback-connector-mysql/blob/v6.2.0/lib/mysql.js
|
||||||
MySQL.prototype.connect = function(callback) {
|
MySQL.prototype.connect = function(callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
const options = generateOptions(this.settings);
|
const options = generateOptions(this.settings);
|
||||||
|
|
|
@ -11,12 +11,16 @@
|
||||||
"port": "3306",
|
"port": "3306",
|
||||||
"username": "root",
|
"username": "root",
|
||||||
"password": "root",
|
"password": "root",
|
||||||
|
"connectionLimit": 100,
|
||||||
|
"queueLimit": 100,
|
||||||
"multipleStatements": true,
|
"multipleStatements": true,
|
||||||
"legacyUtcDateProcessing": false,
|
"legacyUtcDateProcessing": false,
|
||||||
"timezone": "local",
|
"timezone": "local",
|
||||||
"connectTimeout": 40000,
|
"connectTimeout": 40000,
|
||||||
"acquireTimeout": 90000,
|
"acquireTimeout": 90000,
|
||||||
"waitForConnections": true
|
"waitForConnections": true,
|
||||||
|
"maxIdleTime": 60000,
|
||||||
|
"idleTimeout": 60000
|
||||||
},
|
},
|
||||||
"osticket": {
|
"osticket": {
|
||||||
"connector": "memory",
|
"connector": "memory",
|
||||||
|
|
Loading…
Reference in New Issue