Page 1 of 1
Lost connection to MySQL server
Posted: Mon Jan 29, 2024 5:06 pm
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 ?
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 3:20 am
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?
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 11:35 am
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.
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 1:40 pm
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?
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 4:45 pm
by vilian
I'm trying to do a little example...
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 5:11 pm
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 ?
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 5:16 pm
by vilian
Your program only showed the number 1252
I'm using codepage PT850
Re: Lost connection to MySQL server
Posted: Tue Jan 30, 2024 5:29 pm
by nageswaragunupudi
Thank you.