Skip to content

Commit fda5ba0

Browse files
committed
Update 05.2.md
Data Source Name 缩写笔误成DNS了。。。
1 parent 7410fd9 commit fda5ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/05.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Go中支持MySQL的驱动目前比较多,有如下几种,有些是支持data
114114

115115
关键的几个函数我解释一下:
116116

117-
sql.Open()函数用来打开一个注册过的数据库驱动,Go-MySQL-Driver中注册了mysql这个数据库驱动,第二个参数是DNS(Data Source Name),它是Go-MySQL-Driver定义的一些数据库链接和配置信息。它支持如下格式:
117+
sql.Open()函数用来打开一个注册过的数据库驱动,Go-MySQL-Driver中注册了mysql这个数据库驱动,第二个参数是DSN(Data Source Name),它是Go-MySQL-Driver定义的一些数据库链接和配置信息。它支持如下格式:
118118

119119
user@unix(/path/to/socket)/dbname?charset=utf8
120120
user:password@tcp(localhost:5555)/dbname?charset=utf8

0 commit comments

Comments
 (0)