Error connecting with php tunnel

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jaunecitron
Posts: 2
Joined: Mon 18 Mar 2013 13:39

Error connecting with php tunnel

Post by jaunecitron » Mon 18 Mar 2013 14:20

Hi there,

I'm using MyDAC 5.90.0.57 and try to connect my application with php tunnel 1.5. The're the code that I use to get the things done for the connection regarding to the MyDAC.pdf on page 47.

My DB credential has been tested with PhpMyAdmin on the server where is located tunnel.php.

Code: Select all

myConnection.Options.Protocol := mpHttp;
myConnection.Database := 'my_dbname';
myConnection.Username := 'my_username';
myConnection.Password := 'my_password';
myConnection.HttpOptions.Url := 'http://my_domainename.com/tunnel.php';
myConnection.Server := 'localhost';
myConnection.port := '3306';
myConnection.Connect;
I'm not quite sure regarding the docs what mpHttp protocol basic needs and if it simply discard SERVER and PORT or any other unuseful option to him.

Tunnel.php seems ok from the outside regarding this message
HttpTunnel v1.5
Tunnel script is installed correctly.
You can establish connections through the HTTP tunnel.
When running my application, i'm getting this error (inside and outisde the IDE) :

Image

A little help is required on this monday morning :P

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: Error connecting with php tunnel

Post by DemetrionQ » Fri 22 Mar 2013 09:53

Hello.

This problem is already fixed. To solve the problem, you should use the latest MyDAC version 7.6.12. Please visit Registered Users' Area and check the MyDAC version 7.6.12 availability to you. If you can't find MyDAC 7.6.12 at Registered Users' Area, this means your subscription has expired. In this case you should renew subscription. You can do it at
http://www.devart.com/mydac/ordering.html , the "Renewals & Upgrades" -> "Subscription Renewals" section.

jaunecitron
Posts: 2
Joined: Mon 18 Mar 2013 13:39

Re: Error connecting with php tunnel

Post by jaunecitron » Fri 22 Mar 2013 18:06

Allright, I'll try that.

Thank U DemetrionQ

skippix
Posts: 8
Joined: Fri 30 Dec 2011 11:36

Re: Error connecting with php tunnel

Post by skippix » Mon 10 Mar 2014 11:13

i'm experiencing the same problem and getting the same error using version 8.2.5

any ideas/fixes?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Error connecting with php tunnel

Post by Dimon » Wed 12 Mar 2014 14:26

Please check that you set the TMyConnection.Options.Protocol property to mpHttp.

Post Reply