ErrLookup › go-sql-driver/mysql
go-sql-driver/mysql
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package · Go · 21 source files
Analyzed at c426bd9379 on 2026-08-04. 54 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| invalid DSN: did you forget to escape a param value? | validation | error | go, mysql, dsn, escaping, config |
| invalid DSN: missing the slash separating the database name | validation | error | go, mysql, dsn, config |
| invalid DSN: interpolateParams can not be used with unsafe c | validation | error | go, mysql, dsn, security, sql-injection, collation |
| default addr for network '{cfg.Net}' unknown | validation | error | go, mysql, dsn, network, config |
| invalid value / unknown config name: {cfg.TLSConfig} | validation | error | go, mysql, tls, dsn, config |
| invalid value / unknown server pub key name: {cfg.ServerPubK | validation | error | go, mysql, auth, rsa, dsn, config |
| invalid bool value: {value} | validation | error | go, mysql, dsn, config, load-data-infile, security |
| invalid dbname %q: %w | validation | error | go, mysql, dsn, url-encoding, config |
| invalid timeTruncate value: %v, error: %w | validation | error | config, dsn, time, validation |
| invalid value for server pub key name: %v | validation | error | config, dsn, tls, encoding |
| invalid value for TLS config name: %v | validation | error | config, dsn, tls, encoding |
| invalid connectionAttributes value: %v | validation | error | config, dsn, encoding |
| strict mode has been removed. See https://github.com/go-sql- | panic | critical | config, dsn, breaking-change, panic |
| invalid connection | exception | error | network, connection, sentinel |
| TLS requested but server does not support TLS | exception | error | tls, security, connection |
| this user requires clear text authentication. If you still w | exception | error | auth, security, config |
| this user requires mysql native password authentication | exception | error | auth, config |
| this user requires old password authentication. If you still | exception | error | auth, security, legacy |
| this authentication plugin is not supported | exception | error | auth, version, compatibility |
| MySQL server does not support required protocol 41+ | exception | critical | protocol, legacy, compatibility |
| commands out of sync. You can't run this command now | exception | error | protocol, concurrency, connection |
| commands out of sync. Did you run multiple statements at onc | exception | error | protocol, concurrency, data |
| packet for query is too large. Try adjusting the `Config.Max | exception | error | limits, data, config |
| logger is nil | validation | warning | logging, config, validation |
| key '%s' is reserved | validation | error | tls, config, validation |
| bad value for field: `%c` | exception | error | parsing, time, data |
| invalid time bytes: %s | exception | error | datetime, parsing, wire-format, protocol |
| not [0-9] | exception | error | datetime, parsing, numeric, wire-format |
| year is not in the range [1, 9999]: {year} | validation | error | datetime, binding, validation, client-side |
| invalid DATETIME packet length %d | exception | error | datetime, binary-protocol, prepared-statement, wire-format |
| illegal %s length %d | exception | error | datetime, binary-protocol, wire-format, prepared-statement |
| illegal %s packet length %d | exception | error | datetime, binary-protocol, wire-format, prepared-statement |
| illegal TIME length %d | exception | error | time, binary-protocol, wire-format, prepared-statement |
| invalid TIME packet length %d | exception | error | time, binary-protocol, wire-format, prepared-statement |
| mysql: driver does not support the use of Named Parameters | validation | error | query, parameters, named-params, api-misuse |
| mysql: unsupported isolation level: %v | validation | error | transaction, isolation-level, api-misuse |
| unexpected resp from server for caching_sha2_password, perfo | exception | critical | auth, caching-sha2, tls, mysql8, handshake |
| no pem data found, data: %s | exception | critical | auth, caching-sha2, pem, tls, wire-format |
| no Pem data found, data: %s | exception | critical | auth, sha256, pem, tls, wire-format |
| invalid compressed packet: uncompressed length in header is | exception | error | compression, wire-format, zlib, network |
| invalid max_allowed_packet value (%q): %w | validation | error | connection, dsn, max-allowed-packet, handshake |
| reader '%s' is <nil> | validation | error | load-data, infile, reader-handler, api-misuse |
| reader '%s' is not registered | validation | error | load-data, infile, reader-handler, api-misuse |
| local file '%s' is not registered | validation | error | security, local-infile, load-data, configuration |
| can't convert %T to time.Time | validation | error | types, time, scan, deprecated |
| unsupported protocol version %d. Version %d or higher is req | exception | critical | connection, handshake, network, configuration |
| unknown collation: %q | validation | error | configuration, dsn, collation, charset, connection |
| argument count mismatch (got: %d; has: %d) | validation | error | prepared-statement, arguments, api-misuse |
| cannot convert type: %T | validation | error | types, prepared-statement, serialization, api-misuse |
| protocol error, illegal decimals value %d | exception | error | protocol, binary-protocol, time, resultset, bug |
| unknown field type %d | exception | error | protocol, binary-protocol, field-type, resultset, version-skew |
| non-Value type %T returned from Value | validation | error | types, valuer, conversion, api-misuse |
| unsupported type %T, a slice of %s | validation | error | types, slice, conversion, in-clause, api-misuse |
| unsupported type %T, a %s | validation | error | types, struct, conversion, api-misuse |