How to connect FiveWin with Mysql

User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to connect FiveWin with Mysql

Post by dutch »

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 19.01 / 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)
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: How to connect FiveWin with Mysql

Post by StefanHaupt »

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: Select all

//------------------------------------------------------------//
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
Post Reply