dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlProtocol Enumeration
Example Example

In This Topic
    MySqlProtocol Enumeration
    In This Topic
    Specifies a type of the network protocol which will be used to access MySQL server.
    Syntax
    'Declaration
     
    Public Enum MySqlProtocol 
       Inherits System.Enum
       Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
    Members
    MemberDescription
    HttpHTTP tunneling protocol. For information on how to use it refer to topic Network Tunneling. Not available in Mobile edition.
    HttpSslSecure SSL connection through the HTTP tunneling protocol. For information on how to use it refer to topic Network Tunneling. Not available in Mobile edition.
    MemoryShared memory protocol. This type of the network protocol can be used to access MySQL server at the same machine with client. Not supported in Direct mode. Not available in Mobile edition.
    PipeNamed pipe protocol. Works only on Windows systems. Not available in Mobile edition.
    SshSSH protocol.
    SslSSL protocol.
    TcpTCP/IP protocol.
    UnixSocketUnix socket file connection to local server. In the connection string this value may be specified as "unixsocket", "unix socket", or "unix". When using this protocol, you should specify the unix socket file as the MySqlConnection.Host parameter.
    Remarks
    This enumeration has no effect when MySqlConnection.Embedded property is true.
    Example
    This sample demonstrates how to connect to MySQL server using unix socket protocol
    MySqlConnection conn = new MySqlConnection("host=/var/run/mysql/mysql.sock;database=test;Protocol=unixsocket");
    // or
    MySqlConnection conn = new MySqlConnection("host=/var/run/mysql/mysql.sock;database=test");
    conn.Protocol = MySqlProtocol.UnixSocket;
    Dim conn As MySqlConnection = New MySqlConnection("host=/var/run/mysql/mysql.sock;database=test;Protocol=unixsocket")
    ' or
    Dim conn As MySqlConnection = New MySqlConnection("host=/var/run/mysql/mysql.sock;database=test")
    conn.Protocol = MySqlProtocol.UnixSocket
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Devart.Data.MySql.MySqlProtocol

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also