Name | Description | |
---|---|---|
MySqlConnection Constructor | Overloaded. Initializes a new instance of the MySqlConnection class. |
The following tables list the members exposed by MySqlConnection.
Name | Description | |
---|---|---|
MySqlConnection Constructor | Overloaded. Initializes a new instance of the MySqlConnection class. |
Name | Description | |
---|---|---|
BackslashEscapesMode | ||
Charset | Gets or sets charset that will be used on the client side. | |
ClientVersion | Gets the version of MySQL Client library (libmysql.dll or libmysqld.dll). | |
Compress | Gets or sets a value indicating whether to enable transferred data compression. | |
ConnectionString | Overridden. Gets or sets the string used to open a MySQL connection. | |
ConnectionTimeout | Gets or sets the time to wait while trying to establish a connection before terminating the attempt and generating an error. | |
Container | Gets the System.ComponentModel.IContainer that contains the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
Database | Gets or sets the name of the current database or the database to be used once a connection is open. | |
DataSource | Gets or sets name of the server to which to connect. (Inherited from Devart.Common.DbConnectionBase) | |
Direct | Gets or sets a value indicating whether the MySQL client library (libmysql.dll) is be used. | |
Embedded | Specifies, what server will be used to connect - MySQL server or Embedded MySQL server. | |
Host | Gets or sets name or IP address of host of MySQL database to which to connect. | |
HostInfo | Gets the version of MySQL server to which to connect. | |
HttpOptions | Gets or sets connection options for HTTP tunneling. | |
InDistributedTransaction | Indicates whether the connection is enlisted in a distributed transaction. (Inherited from Devart.Common.DbConnectionBase) | |
LocalFailover | Gets or sets a value indicating whether a failover operation can be performed after connection breaks. | |
Name | Gets or sets the name of the component. | |
Owner | Gets or sets a form or other container that the MySqlConnection instance belongs to. | |
Password | Gets or sets the user's password to connect. | |
PingInterval | Gets or sets the interval (in seconds) between pinging MySQL server and reopening the connection if required. | |
Port | Gets or sets port of MySQL server to which to connect. | |
Protocol | Gets or sets a MySqlProtocol of the MySqlConnection. | |
ProtocolInfo | Gets the version of MySQL protocol. | |
ProxyOptions | Gets or sets proxy server settings. | |
ServerType | ||
ServerVersion | Gets a string containing the version of the instance of MySQL to which the client is connected. | |
ShortServerVersion | ||
Site | Gets or sets the System.ComponentModel.ISite of the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
SshOptions | Gets or sets SshOptions object which is used to establish secure connection with server. | |
SslOptions | Gets or sets SslOptions object which is used to establish secure connection with server. | |
State | Gets the current state of the connection. | |
Unicode | Gets or sets a value indicating whether the UTF8 charset will be used. | |
User | Obsolete. Use UserId property instead. | |
UserId | Gets or sets the name of the user to connect. |
Name | Description | |
---|---|---|
BeginOpen | Starts an asynchronous invocation of an Open method. (Inherited from Devart.Common.DbConnectionBase) | |
BeginTransaction | Overloaded. Begins a transaction at the database. | |
ChangeDatabase | Overridden. Changes the current database associated with an open connection. | |
ClearAllPools | Overloaded. Clears all pools associated with the connection. | |
ClearPool | Clears the pool matching ConnectionString of provided MySqlConnection object. | |
Clone | Creates a new object that is a copy of the current instance. | |
Close | Overridden. Closes the connection to the data source. This is the preferred method of closing any open connection. | |
Commit | Commits the database transaction. | |
CreateCommand | Creates and returns a MySqlCommand object associated with the MySqlConnection. | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject) | |
Dispose() | Releases all resources used by the System.ComponentModel.Component. (Inherited from System.ComponentModel.Component) | |
EndOpen | Ends an asynchronous invocation of the Open method. (Inherited from Devart.Common.DbConnectionBase) | |
EnlistTransaction | Enlists in the specified transaction. (Inherited from Devart.Common.DbConnectionBase) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) | |
GetSchema | Overloaded. Returns list of metadata collections and number of restrictions for a collection. (Inherited from Devart.Common.DbConnectionBase) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) | |
Kill | Terminates given connection to server. | |
Open | Overridden. Opens a MySQL connection with the property settings specified by the ConnectionString. | |
Ping | Determines whether connection to MySQL server is valid. | |
Rollback | Rolls back a transaction from a pending state. | |
ToString | Returns a System.String containing the name of the System.ComponentModel.Component, if any. This method should not be overridden. (Inherited from System.ComponentModel.Component) |
Name | Description | |
---|---|---|
AuthenticationPrompt | The event occurs when performing keyboard-interactive authentication. | |
ConnectionLost | This event occurs when connection is lost. | |
Disposed | Occurs when the component is disposed by a call to the System.ComponentModel.Component.Dispose method. (Inherited from System.ComponentModel.Component) | |
Error | Occurs when MySQL returns an error. | |
InfoMessage | Occurs when MySQL returns a warning or informational message. | |
SshHostKeyConfirmation | The event occurs when host key verification during establishing connection failed. | |
StateChange | Occurs when the state of the connection changes. (Inherited from Devart.Common.DbConnectionBase) | |
TransactionStateChanged | Occurs when the state of the transaction is changed. (Inherited from Devart.Common.DbConnectionBase) | |
TransactionStateChanging | Occurs when the state of the transaction is changing. (Inherited from Devart.Common.DbConnectionBase) |