Update README.md

Make the connection string for MySQL more obvious.
This commit is contained in:
arianitu 2014-10-11 21:40:10 -04:00
parent 5d0d2a8e98
commit 716e682394
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ import (
) )
db, err := gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") db, err := gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable")
// db, err := gorm.Open("mysql", "gorm:gorm@/gorm?charset=utf8&parseTime=True") // db, err := gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True")
// db, err := gorm.Open("sqlite3", "/tmp/gorm.db") // db, err := gorm.Open("sqlite3", "/tmp/gorm.db")
// Get database connection handle [*sql.DB](http://golang.org/pkg/database/sql/#DB) // Get database connection handle [*sql.DB](http://golang.org/pkg/database/sql/#DB)