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
+9
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,15 @@ Default: false
123
123
`allowAllFiles=true` disables the file Whitelist for `LOAD DATA LOCAL INFILE` and allows *all* files.
124
124
[*Might be insecure!*](http://dev.mysql.com/doc/refman/5.7/en/load-data-local.html)
125
125
126
+
##### `allowClearPasswords`
127
+
128
+
```
129
+
Type: bool
130
+
Valid Values: true, false
131
+
Default: false
132
+
```
133
+
`allowClearPasswords=true` allows the usage of the cleartext client side plugin. This can be insecure but is required by the [PAM authentication plugin](http://dev.mysql.com/doc/refman/5.5/en/pam-authentication-plugin.html).
Copy file name to clipboardexpand all lines: errors.go
+11-9
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,17 @@ import (
19
19
20
20
// Various errors the driver might return. Can change between driver versions.
21
21
var (
22
-
ErrInvalidConn=errors.New("Invalid Connection")
23
-
ErrMalformPkt=errors.New("Malformed Packet")
24
-
ErrNoTLS=errors.New("TLS encryption requested but server does not support TLS")
25
-
ErrOldPassword=errors.New("This server only supports the insecure old password authentication. If you still want to use it, please add 'allowOldPasswords=1' to your DSN. See also https://github.com/go-sql-driver/mysql/wiki/old_passwords")
26
-
ErrOldProtocol=errors.New("MySQL-Server does not support required Protocol 41+")
27
-
ErrPktSync=errors.New("Commands out of sync. You can't run this command now")
28
-
ErrPktSyncMul=errors.New("Commands out of sync. Did you run multiple statements at once?")
29
-
ErrPktTooLarge=errors.New("Packet for query is too large. You can change this value on the server by adjusting the 'max_allowed_packet' variable.")
30
-
ErrBusyBuffer=errors.New("Busy buffer")
22
+
ErrInvalidConn=errors.New("Invalid Connection")
23
+
ErrMalformPkt=errors.New("Malformed Packet")
24
+
ErrNoTLS=errors.New("TLS encryption requested but server does not support TLS")
25
+
ErrOldPassword=errors.New("This user requires old password authentication. If you still want to use it, please add 'allowOldPasswords=1' to your DSN. See also https://github.com/go-sql-driver/mysql/wiki/old_passwords")
26
+
ErrClearPassword=errors.New("This user requires clear text authentication. If you still want to use it, please add 'allowClearPasswords=1' to your DSN.")
27
+
ErrUnknownPlugin=errors.New("The authentication plugin is not supported.")
28
+
ErrOldProtocol=errors.New("MySQL-Server does not support required Protocol 41+")
29
+
ErrPktSync=errors.New("Commands out of sync. You can't run this command now")
30
+
ErrPktSyncMul=errors.New("Commands out of sync. Did you run multiple statements at once?")
31
+
ErrPktTooLarge=errors.New("Packet for query is too large. You can change this value on the server by adjusting the 'max_allowed_packet' variable.")
0 commit comments