update README.md

update  outdated parameters of the createConnection method.
This commit is contained in:
Maxiee 2017-06-21 23:10:04 +08:00 committed by GitHub
parent 8d9083bbb9
commit be9ea332aa

View File

@ -341,14 +341,12 @@ import {createConnection} from "typeorm";
import {Photo} from "./entity/Photo";
createConnection({
driver: {
type: "mysql",
host: "localhost",
port: 3306,
username: "root",
password: "admin",
database: "test"
},
type: "mysql",
host: "localhost",
port: 3306,
username: "root",
password: "admin",
database: "test"
entities: [
Photo
],