FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to connect FiveWin with Mysql
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How to connect FiveWin with Mysql
Posted: Mon Feb 23, 2009 06:59 PM
Dear Antonio,

I have change to MySql 3.51 and set as your mention but it's still not working (same error)
Antonio Linares wrote:Dutch,

Please try it with these connections values:

server=SQL06.FREEMYSQL.NET;database=fwppc;uid=fivetech;pwd=fivewin

the older one seems to be no longer available


Regards,
Dutch
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: How to connect FiveWin with Mysql
Posted: Tue Feb 24, 2009 08:34 AM
Hi,

I´m using these functions to connect to a MySql server 5.1. I don´t use AdoRdd at the moment, but maybe these functions are helpful.

Code (fw): Select all Collapse
//------------------------------------------------------------//
FUNCTION Connect (cHost, cUser, cPass, oStatus)

  oServer := TMySQLServer():New(cHost, cUser, cPass)
  if oServer:NetErr()
     MsgAlert (oServer:Error(),"MySQL Error")
     quit
   else
     lConnected := .t.
     oStatus:SetText ("angemeldet als: " + cUser + " an: " + cHost)
  endif

RETURN (nil)

//------------------------------------------------------------//
FUNCTION DisConnect (oStatus)

  IF oServer <> nil
    oServer:End ()
    oStatus:SetText ("abgemeldet")
    oServer := nil
  ENDIF

RETURN (nil)


Be aware, that all parameters are case-sensitive !
kind regards

Stefan

Continue the discussion