Error #08S01Bad handshake - MySQL 5.5.12,Win64,Delphi7

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
petrn
Posts: 2
Joined: Sat 07 May 2011 11:21

Error #08S01Bad handshake - MySQL 5.5.12,Win64,Delphi7

Post by petrn » Sat 07 May 2011 11:37

UniDAC Trial v3.70.0.17 for Delphi7 used.
Error happens in TUniConnection component when I try Connect button.

Any solution?

Many thanks.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 10 May 2011 08:26

Please try connecting to MySQL server with third-party applications, like EMS SQL Manager or any others. If the problem still exist?

petrn
Posts: 2
Joined: Sat 07 May 2011 11:21

Post by petrn » Tue 10 May 2011 15:11

I can connect without any problems with any other application, other 3rd party Delphi DACs, MySQL Workbench.

I could connect to 5.0.18 with previous trial version, then I upated MySQL to 5.5.12 and I could not, I upgraded to the 3.7 and I still can not. I think I could conntect to MySQL 5.5.11 with previous UniDAC.

Does anybody connects to 64bit,Win7, Delphi7, MySQL 5.5.12 successfully?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 11 May 2011 09:37

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next UniDAC build.

resm
Posts: 1
Joined: Wed 18 May 2011 14:59

error after MySQL update 5.1.51 to 5.1.56

Post by resm » Wed 18 May 2011 16:17

Hi,

our application worked fine with unidac vcl 3.5.

Yesterday our server provider updated from MySQL 5.1.51 to 5.1.56.

Now we get the error "bad handshake", tying unidac 3.70.0.17 still same error.

So we are in urgent need of the next build. Please: when can we expect this?

Thanks!

AndreyZ

Post by AndreyZ » Thu 19 May 2011 07:38

The next UniDAC build will be available in two weeks.

stevel
Posts: 125
Joined: Tue 02 Nov 2010 19:01

3 weeks have passed - is the update coming soon?

Post by stevel » Sat 11 Jun 2011 15:46

I need MySQL connectivity and this 'bad handshake' thing means that I have stopped my project.

AndreyZ

Post by AndreyZ » Tue 14 Jun 2011 08:02

The next UniDAC build will be available in two days. We will post an announcement on the forum about the new build.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Bad Handshake with UniDAC 3.70.0.18

Post by DanielH » Mon 04 Jul 2011 14:12

There is still the same error "Bad Handshake" with:

- Embarcadero RAD Studio XE (C++ Builder)
- UniDAC 3.70.0.18 for RAD Studio XE
- MySQL Server 5.5.13
:?

it occurs when I try to connect to the database.

Any solution?

Regards,

AndreyZ

Post by AndreyZ » Mon 04 Jul 2011 15:23

Please try the following:
- close RAD Studio XE;
- remove UniDAC;
- remove all *dac*.bpl files from your computer;
- reinstall UniDAC.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Post by DanielH » Tue 05 Jul 2011 06:53

I made the steps,but when I try to compile my project
I get an erorr E2040 (Declaration terminated incorrectly) in CRParser.hpp line 210 -> "static const int BLOCK_SIZE = 0x10000;"

When I edit this line e.g. "static const int _BLOCK_SIZE = 0x10000;",the project can be compiled.Note the "_" before BLOCK_SIZE .

When I start the project,(connect to MySQL DB) the "Bad Handshake" error
still occurs.

Regards,
Daniel

AndreyZ

Post by AndreyZ » Tue 05 Jul 2011 09:57

We can connect to your computer using Remote Desktop Connection, and try determining the cause of this problem. Could you please provide us access to your computer? If yes, please send your IP, username, and password to andreyz*devart*com.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Bad Handshake with UniDAC 3.70.0.18

Post by DanielH » Thu 07 Jul 2011 06:27

Hello,

A Remote Desktop Connection is not possible in the company network ...
Note: My Project is under Win32

Environment (Win 32):
- Embarcadero RAD Studio XE (C++ Builder)
- UniDAC 3.70.0.18 for RAD Studio XE
- MySQL Server 5.5.14

Regards,

AndreyZ

Post by AndreyZ » Thu 07 Jul 2011 11:22

Please try the following:
- remove UniDAC;
- remove all *dac*.bpl, *dac*.bpi, *dac*.dcp, and *dac*.hpp files from your computer;
- reinstall UniDAC.
If it doesn't help, please try the following:
- remove UniDAC;
- run UniDAC installation with the /force parameter like this: unidac370d15pro.exe /force.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Bad Handshake with UniDAC 3.70.0.18

Post by DanielH » Fri 08 Jul 2011 06:17

I have found a workaround for the "Bad Handshake" Problem:

- In the used TUniConnection object at options for provider,in my case MySQL, I changed at the key "Direct" the value from "True" to "False".

- After that, the libmysql.dll is needed at the own application (same folder or an folder defined in PATH)

you can find libmysql.dll in installfolder of MySQL Server , subfolder lib

Finally I can connect to MySQL Server with UniDAC :)

Post Reply