Skip to content

Commit c1eca66

Browse files
committed
Update README.md
1 parent 835acfa commit c1eca66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For Unix-sockets the address is the absolute path to the MySQL-Server-socket, e.
103103
**Parameters are case-sensitive!**
104104

105105
Possible Parameters are:
106-
* `charset`: *"SET NAMES `value`"*
106+
* `charset`: *"SET NAMES `value`"*. If multiple charsets are set (seperated by a comma), the following charset is used if setting the charset failes. This enables support for `utf8mb4` ([introduced in MySQL 5.5.3](http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html)) with fallback to `utf8` for older servers.
107107
* _(deprecated)_ <s>`keepalive`: If `value` equals 1, the keepalive-time is set to [wait_timeout](https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_wait_timeout)-60, which pings the Server 60 seconds before the MySQL server would close the connection to avoid timeout. If the value is greater than 1, the server gets pinged every `value` seconds without a command. System variables are executed **before**, so it may be possible to change the *wait_timeout* value.</s> **With Go 1.0.3 this is not necessary anymore. Now closed connections can be automatically detected and handled.**
108108
* _(pending)_ <s>`tls`</s>: will enable SSL/TLS-Encryption
109109
* _(pending)_ <s>`compress`</s>: will enable Compression
@@ -119,7 +119,7 @@ user@unix(/path/to/socket)/dbname?charset=utf8
119119
```
120120

121121
```
122-
user:password@tcp(localhost:5555)/dbname?charset=utf8
122+
user:password@tcp(localhost:5555)/dbname?charset=utf8mb4,utf8
123123
```
124124

125125
```

0 commit comments

Comments
 (0)