Page 1 of 1

Connect to MySQL through https tunnel?

Posted: Sat 27 Dec 2014 10:40
by Grolle
Hi,

please could someone give me an example how to build the connection string through an https tunnel with dotConnect Universal in an WPF Application? I cannot find an example for this case. Thanks a lot and best regards ...

Re: Connect to MySQL through https tunnel?

Posted: Mon 29 Dec 2014 15:22
by Pinturiccio
dotConnect Universal uses common features of ADO.NET providers and does not use the specific provider features. Since HTTP tunnel is a MySQL-specific feature, it is not supported in dotConnect Universal. If you want to use the HTTP tunnel feature, use dotConnect for MySQL. For more information, please refer to http://www.devart.com/dotconnect/mysql

Re: Connect to MySQL through https tunnel?

Posted: Fri 16 Jan 2015 14:28
by idem84
Hi!
Then, what is the purpose of the "tunnel.php" file in dotConnect Universal Installation folder?

Re: Connect to MySQL through https tunnel?

Posted: Thu 22 Jan 2015 16:17
by Pinturiccio
We are sorry for the misunderstanding. You are right, dotConnect Universal supports HTTP tunnel. dotConnect Universal uses dotConnect for MySQL for connecting to MySQL databases. You can find more detailed information on using HTTP tunnel in the dotConnect for MySQL documentation. For more information, please refer to http://www.devart.com/dotconnect/mysql/ ... tml#tunnel

However, UniConnection does not have the corresponding HTTP tunnel-related properties for setting HttpOptions, and you need to set HttpOptions values via the connection string. Here is the list of HttpOptions properties and corresponding connection string parameters:

Code: Select all

HttpOptions.Base64 - HTTP Base64
HttpOptions.ContentLength - HTTP Content Length
HttpOptions.Host - HTTP Host
HttpOptions.KeepAlive - HTTP Keep Alive
HttpOptions.MaxConnectionAge - HTTP Max Connection Age
HttpOptions.Password - HTTP Password
HttpOptions.Port - HTTP Port
HttpOptions.StrictContentLength - HTTP Strict Content Length
HttpOptions.Url - HTTP Url
HttpOptions.User - HTTP User
For more information about HttpOptions properties, please refer to http://www.devart.com/dotconnect/mysql/ ... rties.html