'Declaration Public Enum MySqlProtocol Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum MySqlProtocol : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration Public Enum MySqlProtocol Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum MySqlProtocol : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Http | HTTP tunneling protocol. For information on how to use it refer to topic Network Tunneling. Not available in Mobile edition. |
HttpSsl | Secure SSL connection through the HTTP tunneling protocol. For information on how to use it refer to topic Network Tunneling. Not available in Mobile edition. |
Memory | Shared 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. |
Pipe | Named pipe protocol. Works only on Windows systems. Not available in Mobile edition. |
Ssh | SSH protocol. |
Ssl | SSL protocol. |
Tcp | TCP/IP protocol. |
UnixSocket | Unix 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. |
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
System.Object
System.ValueType
System.Enum
Devart.Data.MySql.MySqlProtocol
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