From 716e682394f5d95e9b192368b35e8acf8ac692f6 Mon Sep 17 00:00:00 2001 From: arianitu Date: Sat, 11 Oct 2014 21:40:10 -0400 Subject: [PATCH] Update README.md Make the connection string for MySQL more obvious. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83456cc0..f7550408 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ import ( ) 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") // Get database connection handle [*sql.DB](http://golang.org/pkg/database/sql/#DB)