Hi again,
Have you any Delphi code using tunnel.
Using zeos components I tend to loose connection, but thought this might be an easy way to communicate with MySQL.
This would help me with a web hosting service that limits the use of MySQL to specific IP addresses.
Sorry this is not b4a related but will be very handy for this entire project.
Tom
Tom,
I've been using UniDAC in Delphi for CLOUD MySQL for more than 2,5 years now. The disconnections issue is in fact an issue related not only to MySQL but routers and network inbetween. I use an exception handler in my UniConnection components to reconnect to the DB without affecting the user or the interface whenever the connection is dropped. One other issue I've used is pinging the service (MySQL) either issuing a "SELECT version()" or MySQL.ping to keep the connection alive from the server's point, since MySQL has a connection timeout.
I've tried a lot my tunnel as well as UniDAC's tunnel with Delphi and the performance overhead is huge. In fact our products realize direct-encrypted connections to our cloud servers (in Rackspace) and the performance is acceptable, since we've overcome with the disconnections issues.
Nowadays we are dealing with CopyCAT, a VCL to synch databases based on triggers. Quick performance, reliable and stable. We haven't put that in productions since there are issues we have to deal with the embedded databases we use, but the product seems to be very promising.
The tunnel is needed in cases such as mobile devices, etc. Just as B4A is targeted.