Skip to content

Commit

Permalink
fix: ormconfig username/password 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
changheedev committed Aug 7, 2020
1 parent c62544a commit c40b949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/ormconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "root",
"password": "root",
"username": "relay11",
"password": "123123",
"database": "relay11db",
"synchronize": true,
"logging": true,
Expand Down
5 changes: 2 additions & 3 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { createConnection } from "typeorm";
const main = async function () {
const app = new Koa();
// const router = new Router();
const connection = createConnection().then(() => {
console.log("connected");
});
const connection = await createConnection();
console.log('Database connection successfully.');

app.listen(8080, () => {});
};
Expand Down

0 comments on commit c40b949

Please sign in to comment.