FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bluehost MySQL Server through Fivewin
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Bluehost MySQL Server through Fivewin
Posted: Sun Jan 24, 2016 10:01 PM

Hello Antonio,
Do you know if it is possible to access MySQL Server located on Bluehost through Fivewin.
Thanks in advance
Otto

Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: Bluehost MySQL Server through Fivewin
Posted: Mon Jan 25, 2016 02:42 AM

Yes! But your app ip should be fixed, set permission ip on the bulehost control panel.
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Mon Jan 25, 2016 08:53 AM

Otto,

Here you have an example published by Rafa Carmona using a web service:

viewtopic.php?p=184458

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Mon Jan 25, 2016 09:48 AM

Dear Antonio and Shuming,
Thank you for your help.
I will post here all the steps I do till I have finished a working sample.

As Shuming told me you have to setup Bluehost first to accept remote access.

->login bluehost cPanel
->database tools
->Remote Mysql access
Submit an IP or Class C
I submitted Class C access which you get with the add link

Then I downloaded HeidiSQL and tested the remote access from my desktop
Now I want to start to access from a Fivewin programm.

Which SQL driver would you suggest to start with?
Is there a working sample?
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Mon Jan 25, 2016 10:19 AM

Otto,

Look for FW_OpenAdoConnection in FWH\samples*.prg

Also you can review FiveDBU source code

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Mon Jan 25, 2016 10:21 AM

Otto,

You can use libmysql.dll. It's working very good.

Edited: With TDolphin, of course

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Tue Jan 26, 2016 10:11 AM

Dear Antonio,
Can you show us how the connectionstring should look like.
These are my parameters I use in HeidiSQL which work fine.

LOCAL cHost := "box894.bluehost.com"
LOCAL cUser := "axxxxnge"
LOCAL cPsw := "14Adxxxx1"
LOCAL nPort := 3306
LOCAL cDb := "atzwange_xxxxxe3"

Thanks in advance
Otto

FUNCTION SQLEXEC( cQuery )

LOCAL cCns := "Your connectionstring here"

LOCAL oCn := CREATEOBJECT( "ADODB.Connection" )

oCn:CursorLocation = adUseClient

oCn:Open( cCns )

oCn:Execute( cQuery )

oCn:Close()

RETURN NIL

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Tue Jan 26, 2016 05:20 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Wed Jan 27, 2016 12:03 AM
Dear Antonio,
thank you for your help.
Now I can successfully connect to Bluehost with FIVEDBU.
Great.
Download:
mysql-connector-odbc-5.1.13-win32.msi
Click on ICON "ADO open"





Best regards,
Otto
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bluehost MySQL Server through Fivewin
Posted: Wed Jan 27, 2016 10:32 AM

Otto,

great! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion