Lost connection to MySQL server

Post Reply
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Lost connection to MySQL server

Post by vilian »

Hi Guys,

After update my FWH to the newest version, i'm having this message error bellow:

Code: Select all | Expand

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
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Lost connection to MySQL server

Post by nageswaragunupudi »

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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: Lost connection to MySQL server

Post by vilian »

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
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Lost connection to MySQL server

Post by nageswaragunupudi »

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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: Lost connection to MySQL server

Post by vilian »

I'm trying to do a little example...
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Lost connection to MySQL server

Post by nageswaragunupudi »

Thanks.
Offtopic:
1) Meanwhile, can u run this small test and let me know the result?

Code: Select all | Expand

#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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: Lost connection to MySQL server

Post by vilian »

Your program only showed the number 1252

I'm using codepage PT850
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Lost connection to MySQL server

Post by nageswaragunupudi »

Thank you.
Regards

G. N. Rao.
Hyderabad, India
Post Reply