Informax.SqlCenter跨数据库平台(三)——连接字符串
Compress | If true, enables transferred data compression. The default value is false. |
Connection Lifetime | When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by Connection Lifetime. The default value is 0 (connection always returns to pool). |
Connect Timeout -or- Connection Timeout | The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. The default value is 15. |
Data Source -or- Host -or- Server | The name or IP address of host of MySQL database to which to connect. |
Database | The name of the database. |
Direct | If true, by default, allows not to use MySQL client library (libmysql.dll) to access MySQL server. |
Embedded | If true, allows to use Embedded MySQL server. The default value is false |
Max Pool Size | The maximum number of connections allowed in the pool. Setting the Max Pool Size value of the ConnectionString can affect performance. The default value is 100. |
Min Pool Size | The minimum number of connections allowed in the pool. The default value is 0. |
Password | The password for the account. |
Pooling | If true, by default, the MySqlConnection object is drawn from the appropriate pool or is created and added to the appropriate pool. |
Port | The port of MySQL database to which to connect. The default value is 3306. |
Protocol | The type of the network protocol which will be used to access to MySQL server. The default value is Tcp. |
Unicode | If true, sets client charset to UTF8 and converts client data according to this charset. The default value is false. |
User ID -or- User | The MySQL login account. |