Bluehost MySQL Server through Fivewin

Bluehost MySQL Server through Fivewin

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: Bluehost MySQL Server through Fivewin

Postby ShumingWang » Mon Jan 25, 2016 2: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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: Bluehost MySQL Server through Fivewin

Postby Antonio Linares » Mon Jan 25, 2016 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bluehost MySQL Server through Fivewin

Postby Otto » Mon Jan 25, 2016 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: Bluehost MySQL Server through Fivewin

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bluehost MySQL Server through Fivewin

Postby Carles » 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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1131
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: Bluehost MySQL Server through Fivewin

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: Bluehost MySQL Server through Fivewin

Postby Antonio Linares » Tue Jan 26, 2016 5:20 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Bluehost MySQL Server through Fivewin

Postby Otto » 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"
Image
Image
Image
Image

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: Bluehost MySQL Server through Fivewin

Postby Antonio Linares » Wed Jan 27, 2016 10:32 am

Otto,

great! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 117 guests