We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7410fd9 commit fda5ba0Copy full SHA for fda5ba0
ebook/05.2.md
@@ -114,7 +114,7 @@ Go中支持MySQL的驱动目前比较多,有如下几种,有些是支持data
114
115
关键的几个函数我解释一下:
116
117
-sql.Open()函数用来打开一个注册过的数据库驱动,Go-MySQL-Driver中注册了mysql这个数据库驱动,第二个参数是DNS(Data Source Name),它是Go-MySQL-Driver定义的一些数据库链接和配置信息。它支持如下格式:
+sql.Open()函数用来打开一个注册过的数据库驱动,Go-MySQL-Driver中注册了mysql这个数据库驱动,第二个参数是DSN(Data Source Name),它是Go-MySQL-Driver定义的一些数据库链接和配置信息。它支持如下格式:
118
119
user@unix(/path/to/socket)/dbname?charset=utf8
120
user:password@tcp(localhost:5555)/dbname?charset=utf8
0 commit comments