.net MYSQL connection string parameters detailed analysis

Typically database connection string:
Database = dbname; the Source the Data = 192.168.1.1; Port = 3306; the User Id = the root; Password = ****; the Charset = UTF8; = TreatTinyAsBoolean to false;

Where:
Server, Host, the Data Source, the DataSource, address, addr, Network address: database location (keyword can be any of the above)
Database, Initial Cataog: Database name
Port: socket port, default 3306
ConnectionProtocol, Protocol: a connectionless protocol, default Sockets
PipeName, pipe: connecting pipes, default MYSQL
UseCompression, the compress: the connection is compressed, default false
AllowBatch: whether to allow one to perform multiple SQL statements, default to true
logging: whether logging is enabled, default false
SharedMemoryName: shared memory name, the default MYSQL
UseOldSyntax, old syntax, oldsyntax: compatible legacy syntax, default false
ConnectionTimeout, connection timeout: connection timeout waiting time, default 15s
DefaultCommandTimeout, the Command timeout: the MySqlCommand timeout, default 30s
UserID, uid, username, the User name, the User: database login account
password, pwd: password
PersistSecurityInfo: whether to keep sensitive information, default false
Encrypt: SSL has been replaced with the default false
CertificateFile: certificate file (.pfx) format
CertificatePassword: Password certificates
CertificateStoreLocation: the certificate store location
CertificateThumbprint: Certificate fingerprint
AllowZeroDateTime: date and time can be zero, default false
ConvertZeroDateTime: zero whether the date and time into DateTime.MinValue, default false
UseUsageAdvisor, Usage Advisor: whether the assistant is enabled, it will affect database performance, default false
ProcedureCacheSize, procedure cache, procedurecache: at the same time be able to cache a few stored procedures, 0 is disabled by default 25
UsePerformanceMonitor , userperfmon, perfmon: whether to enable performance monitoring, default false
IgnorePrepare: whether to ignore Prepare () call, the default to true
UseProcedureBodies, bodies procedure: check whether the validity of the stored procedure body, parameters, default to true
AutoEnlist: whether to automatically use the active connections, default to true
RespectBinaryFlags: whether to respond to the column metadata on a binary flag, default to true
TreatTinyAsBoolean: whether to TINYINT (1) Regarded as Boolean, default true
AllowUserVariables: whether to allow the user SQL variables appear, default false
InteractiveSession, Interactive: whether to allow interactive session, default false
FunctionsReturnString: all server functions according to whether to return the string processing, default false
UseAffectedRows: whether to find the number of rows affected by the substitution of to return the number of rows of data, default to false
OldGuids: whether binary (16) column as Guids, default to false
the Keepalive: holding TCP connection seconds, default 0, is not maintained.
ConnectionLifeTime: minimum time before being connected to the connection pool maintained destroyed (in seconds). Default 0
Pooling: whether the thread pools, default to true
MinimumPoolSize, the pool size min: minimum number of threads allowed in thread pool, default 0
maximumPoolSize, the pool size max: the maximum number of threads allowed in thread pool, 100 default
connection expires: ConnectionReset automatically reset, default to false
the CharacterSet, charset: the character set used by the connection request to the server, default: none
TreatBlobsAsUTF8: binary blobs whether utf8 treated by default to false
BlobAsUTF8IncludePattern: pattern matching column, once the matching process will utf8 default: no
sslMode: whether to enable SSL connection mode, default: MySqlSslMode.None

Guess you like

Origin www.cnblogs.com/zhangzhiping35/p/12177864.html