FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Lost connection to MySQL server
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Lost connection to MySQL server
Posted: Mon Jan 29, 2024 05:06 PM
Hi Guys,

After update my FWH to the newest version, i'm having this message error bellow:
Code (fw): Select all Collapse
Lost Connection  to MySql server at reading initial communcation packet, system error:2
Please check teh connection and try again.
IF I jusk click in the button "ok" of the dialog, the program starts and everything works ok. IF i return to my previous version, everything is ok, nothing is shown.

Do you know why is it happening ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 03:20 AM

Please build and run

fwh\samples\maria01.prg

and let us know if you experience any problem.

Are you using FWH2310?

Harbour or xHarbour?

Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 11:35 AM
Good Morning,

Are you using FWH2310?
Yes
Harbour or xHarbour?
Harbour.

Please build and run
fwh\samples\maria01.prg
With this sample everything is ok.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 01:40 PM
Please build and run
fwh\samples\maria01.prg
With this sample everything is ok.
Then, how can you help me to reproduce your error here?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 04:45 PM

I'm trying to do a little example...

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 05:11 PM
Thanks.
Offtopic:
1) Meanwhile, can u run this small test and let me know the result?
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   ? GetACP()

return nil

#pragma BEGINDUMP

#include "windows.h"
#include "hbapi.h"

HB_FUNC( GETACP )
{ hb_retni( GetACP() ); }

#pragma ENDDUMP
Can you build and run this program and can you let us know the result?

2) What codepage do you set for your programs ?
Regards



G. N. Rao.

Hyderabad, India
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 05:16 PM
Your program only showed the number 1252

I'm using codepage PT850
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 05:29 PM

Thank you.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion