question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support all MySql.Data Connection String options

See original GitHub issue

From Connection String Options Reference:

Option Status Issue Comments
AllowBatch it’s true by default, and there doesn’t seem to be much point in supporting false
AllowLoadLocalInfile ✔️ #643 New in 8.0.16
AllowLoadLocalInfileInPath #899 New in 8.0.22
AllowUserVariables ✔️
AllowZeroDateTime ✔️ #507
AutoEnlist ✔️ #13
CacheServerProperties optimisation for Connector/NET because it always retrieves @@max_allowed_packet, @@character_set_client etc. when connecting
CertificateFile ✔️ #88
CertificatePassword ✔️ #88
CertificateStoreLocation ✔️ #536
CertificateThumbprint ✔️ #536
CharacterSet hard-coded to utf8mb4 in this connector; unclear if being able to use a different encoding on the wire has clear benefits
CheckParameters true by default; check parameters=false seems to be recommended only as a work around for Connector/NET bugs or MySQL permission problems
CommandInterceptors #420
ConnectionLifeTime ✔️ #212
ConnectionReset ✔️
ConnectionTimeout ✔️ #57
Connect_Attrs Documented, but not supported by Connector/NET
ConvertZeroDateTime ✔️
Database ✔️ aka InitialCatalog
DefaultAuthenticationPlugin new in 8.0.26; “is mandatory for supporting userless and passwordless Kerberos authentications” which isn’t a supported feature of MySqlConnector
DefaultCommandTimeout ✔️ #67
DefaultTableCacheAge see remarks on TableCache
DnsSrv #761 see remarks on #761
EnableSessionExpireCallback default is false; manipulates my_aspnet_sessions table
Encrypt this setting is deprecated
ExceptionInterceptors #420
FunctionsReturnString default is false; unaware of any clients that need this
Host ✔️
IgnorePrepare ✔️ #534
includesecurityasserts for partial trust environments
InteractiveSession ✔️ #510
IntegratedSecurity Windows-only
Keepalive ✔️ #145
Logging Implemented custom logging framework
MinimumPoolSize ✔️ #85
OldGuids ✔️ #26
OldSyntax this setting is deprecated
Password ✔️
Password1, Password2, Password3 #1068
PersistSecurityInfo ✔️
PipeName ✔️ #454 Windows-only
Pooling ✔️ #2 also MaximumPoolsize
Port ✔️
ProcedureCacheSize Cached procedures are very small objects; enforcing a limit of 25 seems unnecessary
ConnectionProtocol Only socket and unix are supported (and auto-detected)
Replication not well documented; this just seems to ensure (client-side) that only read-only commands are executed
RespectBinaryFlags true by default
SharedMemoryName Windows-only
SshHostName, SshPort, SshUserName, SshPassword, SshKeyFile, SshPassPhrase #671 New in 8.0.17; removed in 8.0.24
SslCa ✔️ #640 New in 8.0.16
SslCert ✔️ #641 New in 8.0.16
SslKey ✔️ #641 New in 8.0.16
SslMode ✔️ #88
Sql Server Mode Enables square brackets instead of backticks; seems unnecessary
TableCache Only supported by Connector/NET for CommandType.TableDirect; seems low-value; caching is better handled at the application layer
tlsversion ✔️ #760 New in 8.0.19
TreatBlobsAsUTF8 only necessary for connecting to pre-5.5.3 servers that don’t support utf8mb4; also includes BlobAsUTF8ExcludePattern, BlobAsUTF8IncludePattern
TreatTinyAsBoolean ✔️ #141
UseAffectedRows ✔️ #104
UseProcedureBodies this setting is deprecated
UserID ✔️ aka User name
UseCompression ✔️ #31
UseUsageAdvisor Recommend using third-party DB profiling tools
UsePerformanceMonitor Windows-only

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bgraingercommented, Jun 2, 2020

Every option is either implemented, deliberately not implemented, or (just one: SSH settings) isn’t implemented yet but has a documented workaround.

1reaction
mguinnesscommented, Dec 17, 2019

There are only two hard things in Computer Science: cache invalidation and naming things.   – Phil Karlton

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.1 Creating a Connector/NET Connection String
A connection string contains several key-value pairs, separated by semicolons. In each key-value pair, the option name and its corresponding value are joined...
Read more >
4.5 Connector/NET Connection Options Reference
Connector /NET 8.0 exposes the options in this section as properties in both the MySql.Data.MySqlClient.MySqlConnectionStringBuilder and MySqlX.XDevAPI.
Read more >
MySQL connection strings - ConnectionStrings.com
Connection strings for MySQL. Connect using MySqlConnection, MySQLDriverCS, SevenObjects MySqlClient, Devarts MySqlConnection, MySQLProv.
Read more >
MySQL .NET Connection String Options
MySqlConnector supports most of Oracle's Connector/NET connection options. ... These options specify how to connect and authenticate to a MySQL database.
Read more >
4.2.5 Connecting to the Server Using URI-Like Strings or ...
You can specify a connection to MySQL Server using a URI-like string. Such strings can be used with the MySQL Shell with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found