MySqlConnection Properties

MySQL Connector/Net

MySqlConnection Properties

The MySqlConnection type exposes the following members.

Properties
  Name Description
Protected property CanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public property Code example ConnectionString
Gets or sets the string used to connect to a MySQL Server database.
(Overrides DbConnectionConnectionString.)
Public property Code example ConnectionTimeout
Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
(Overrides DbConnectionConnectionTimeout.)
Public property Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public property Code example Database
Gets the name of the current database or the database to be used after a connection is opened.
(Overrides DbConnectionDatabase.)
Public property DataSource
Gets the name of the MySQL server to which to connect.
(Overrides DbConnectionDataSource.)
Protected property DbProviderFactory (Overrides DbConnectionDbProviderFactory.)
Protected property DesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected property Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public property IsPasswordExpired
Public property ServerThread
Returns the id of the server thread this connection is executing on
Public property Code example ServerVersion
Gets a string containing the version of the MySQL server to which the client is connected.
(Overrides DbConnectionServerVersion.)
Public property Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public property Code example State
Gets the current state of the connection.
(Overrides DbConnectionState.)
Public property UseCompression
Indicates if this connection should use compression when communicating with the server.
Top
See Also