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
+5
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,11 @@ This has the same effect as an empty DSN string:
114
114
115
115
```
116
116
117
+
If your database name includes a slash, use the [URL encoding](https://en.wikipedia.org/wiki/Percent-encoding)`%2F`:
118
+
```
119
+
/dbname%2Fwithslash
120
+
```
121
+
117
122
Alternatively, [Config.FormatDSN](https://godoc.org/github.com/go-sql-driver/mysql#Config.FormatDSN) can be used to create a DSN string by filling a struct.
0 commit comments