You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ A MySQL-Driver for Go's [database/sql](http://golang.org/pkg/database/sql) packa
19
19
*[Address](#address)
20
20
*[Parameters](#parameters)
21
21
*[Examples](#examples)
22
+
*[TLS support](#tls-support)
22
23
*[LOAD DATA LOCAL INFILE support](#load-data-local-infile-support)
23
24
*[time.Time support](#timetime-support)
24
25
*[Unicode support](#unicode-support)
@@ -113,7 +114,7 @@ Possible Parameters are:
113
114
*`parseTime`: `parseTime=true` changes the output type of `DATE` and `DATETIME` values to `time.Time` instead of `[]byte` / `string`
114
115
*`strict`: Enable strict mode. MySQL warnings are treated as errors.
115
116
*`timeout`: **Driver** side connection timeout. The value must be a string of decimal numbers, each with optional fraction and a unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*. To set a server side timeout, use the parameter [`wait_timeout`](http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_wait_timeout).
116
-
*`tls`: `true` enables TLS / SSL encrypted connection to the server. Use `skip-verify` if you want to use a self-signed or invalid certificate (server side)
117
+
*`tls`: `true` enables TLS / SSL encrypted connection to the server. For other values see [TLS support](#tls-support).
117
118
118
119
All other parameters are interpreted as system variables:
119
120
*`autocommit`: *"SET autocommit=`value`"*
@@ -143,6 +144,14 @@ No Database preselected:
143
144
user:password@/
144
145
```
145
146
147
+
### TLS support
148
+
For TLS support set the `tls` parameter to one of the following values:
149
+
150
+
*`true`: Server certificate is signed by a trusted authority.
151
+
*`skip-verify`: Server certificate is self-signed with no root authority.
152
+
*`custom`: Server certifiate is signed by a self-managed authority, and/or a client certificate is used. `custom` can be any value that coorisponds to a custom `tls.Config` registered with [`mysql.RegisterTLSConfig`](http://godoc.org/github.com/go-sql-driver/mysql#RegisterTLSConfig).
153
+
154
+
146
155
### `LOAD DATA LOCAL INFILE` support
147
156
For this feature you need direct access to the package. Therefore you must change the import path (no `_`):
0 commit comments