MySQL Connector/Net
MySqlConnection Constructor (String) |
Initializes a new instance of the MySqlConnection class when given a string containing the connection string.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public MySqlConnection( string connectionString )
Public Sub New ( connectionString As String )
public: MySqlConnection( String^ connectionString )
new : connectionString : string -> MySqlConnection
Parameters
- connectionString
- Type: SystemString
The connection properties used to open the MySQL database.

When a new instance of MySqlConnection is created, the read/write
properties are set to the following initial values unless they are specifically
set using their associated keywords in the ConnectionString property.
Properties | Initial Value |
---|---|
ConnectionString | empty string ("") |
ConnectionTimeout | 15 |
Database | empty string ("") |
DataSource | empty string ("") |
ServerVersion | empty string ("") |
You can change the value for these properties only by using the ConnectionString property.
