diff options
| author | Ran <[email protected]> | 2021-06-17 13:21:33 -0700 |
|---|---|---|
| committer | Ran <[email protected]> | 2021-06-17 13:21:33 -0700 |
| commit | c425fd570ceb1eaf7f0e330eab469fbbfa97b64c (patch) | |
| tree | d687c8b8da6d0237864581619639cd3d659d4506 /db/index.js | |
| parent | 9257d17c7309f537a2b5a6e8d55f2bb2ce23e892 (diff) | |
| download | coinos-server-c425fd570ceb1eaf7f0e330eab469fbbfa97b64c.tar.gz coinos-server-c425fd570ceb1eaf7f0e330eab469fbbfa97b64c.zip | |
change host to mariadb
Diffstat (limited to 'db/index.js')
| -rw-r--r-- | db/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/index.js b/db/index.js index 981938c7..66b4be43 100644 --- a/db/index.js +++ b/db/index.js @@ -3,8 +3,9 @@ const debug = require('debug')('debug'); const dbOptions = require('./../config/knexfile.js')[process.env.NODE_ENV || "development"] -db = new Sequelize(dbOptions.connection.database, dbOptions.connection.user, dbOptions.connection.password, { - host: "localhost", +//db = new Sequelize(dbOptions.connection.database, dbOptions.connection.user, dbOptions.connection.password, { +db = new Sequelize('coinos', 'root', 'password', { + host: "mariadb", dialect: "mariadb", logging: false, dialectOptions: { "multipleStatements": true, "timezone": "Etc/GMT+7" } |
