1 diff --git a/ormconfig.js b/ormconfig.js
2 index 5591853b..838c06cb 100644
5 @@ -38,8 +38,6 @@ switch (config.dbtype) {
8 ormConfig.type = 'mysql';
9 - ormConfig.host = config.mysql.host;
10 - ormConfig.port = config.mysql.port;
11 ormConfig.username = config.mysql.user;
12 ormConfig.password = config.mysql.password;
13 ormConfig.database = config.mysql.database;
14 @@ -49,6 +47,12 @@ switch (config.dbtype) {
16 ormConfig.charset = config.mysql.charset;
18 + if (config.mysql.socketPath) {
19 + ormConfig.extra = { socketPath: config.mysql.socketPath };
21 + ormConfig.host = config.mysql.host;
22 + ormConfig.port = config.mysql.port;
27 diff --git a/src/model/IConfigFile.ts b/src/model/IConfigFile.ts
28 index 6a502e83..ba84a423 100644
29 --- a/src/model/IConfigFile.ts
30 +++ b/src/model/IConfigFile.ts
31 @@ -61,12 +61,13 @@ export default interface IConfigFile {
43 + socketPath?: string;