Skip to content

Commit a2cbf81

Browse files
committed
allowAllFiles DSN parameter
1 parent a88133d commit a2cbf81

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ For Unix-sockets the address is the absolute path to the MySQL-Server-socket, e.
106106
Possible Parameters are:
107107
* `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).
108108
* `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.
109+
* `allowAllFiles`: `allowAllFiles=true` disables the file Whitelist for `LOAD DATA LOCAL INFILE` and allows *all* files. *Might be insecure!*
109110
* _(pending)_ <s>`tls`</s>: will enable SSL/TLS-Encryption
110111
* _(pending)_ <s>`compress`</s>: will enable Compression
111112

connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ func (mc *mysqlConn) handleParams() (err error) {
5454
}
5555
}
5656

57-
// Timeout - already handled on connecting
58-
case "timeout":
57+
// handled elsewhere
58+
case "timeout", "allowAllFiles":
5959
continue
6060

6161
// TLS-Encryption

0 commit comments

Comments
 (0)