#08501 BAD HANDSHAKE

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
airic
Posts: 3
Joined: Tue 10 May 2011 17:17

#08501 BAD HANDSHAKE

Post by airic » Tue 10 May 2011 17:41

Error when trying to connect to database.

Delphi 7 - mydac 5.90.0.56
I have just updated from mysql 5.0.95 to mysql 5.1.57.
Error did not occur prior to update.
Error does not occur when using the root@localhost login.

When I try to use a common user name the error occurs.
[email protected]

Exception: When turning off the direct connect option the connection works.

Very easy to recreate. Drop the myconnection onto a form. Double click the myconnection component on the form. An options window appears to connect. Fill in a user you have added to mysql and click connect. Error will occur immediately.

Any one have any suggestions.

airic
Posts: 3
Joined: Tue 10 May 2011 17:17

stepping through the connection

Post by airic » Tue 10 May 2011 18:05

The code error is mysql error 1043.
Did a internet search on this error and found a lot information from mysql.

Hope this helps.

cybsistemas
Posts: 118
Joined: Mon 12 Sep 2005 17:31
Location: Argentina

Post by cybsistemas » Tue 10 May 2011 19:01

Sqlyog works fine with Mysql 5.5.12 (32 and 64)
Mydac works fine with MySql 5.5.11 (32 and 64)
Mydac error with MySQL 5.5.12 (32 and 64)

Sqlyog works fine with Mysql 5.1.57
Mydac error with MySQL 5.1.57

airic
Posts: 3
Joined: Tue 10 May 2011 17:17

Version problem

Post by airic » Tue 10 May 2011 20:42

Connection works with MYSQL 5.1.53

thanks

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

Post by Dimon » Wed 11 May 2011 09:38

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

garik
Posts: 12
Joined: Wed 11 May 2011 18:55

Post by garik » Wed 11 May 2011 19:03

I'm having the same issue.
When is shceduled the next update release?

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

Post by Dimon » Thu 12 May 2011 10:12

New build of MyDAC version 6.10.0.7 has been released. Bug with the "BAD HANDSHAKE" error was fixed in this build.

tkubica
Posts: 2
Joined: Fri 27 May 2011 09:12

Post by tkubica » Fri 27 May 2011 09:18

I have still "BAD HANDSHAKE" error with 6.10.0.7. D2009 (Mysql 5.1.57 or 5.5.12 x64).

AndreyZ

Post by AndreyZ » Fri 27 May 2011 13:21

Please try the following:
- close RAD Studio 2009;
- remove MyDAC;
- remove all *dac*.bpl files from your computer;
- remove all dcu files from your project;
- reinstall MyDAC and check that it's version 6.10.0.7 (you can learn it from the About sheet of TMyConnection Editor).

tkubica
Posts: 2
Joined: Fri 27 May 2011 09:12

Post by tkubica » Wed 01 Jun 2011 12:30

I do all:
- close RAD Studio 2009;
- remove MyDAC;
- remove all dac bpl files from my computer;
- remove all dcu files from my project;
- reinstall MyDAC and check that it's version 6.10.0.7 and check it
and still have this same error. I trie many time do this same without effects. (mysql 5.5 x64, d2009)

AndreyZ

Post by AndreyZ » Thu 02 Jun 2011 09:11

I've checked MySQL servers 5.1.57 and 5.5.13, x32 and x64 versions. There were no problems with connecting to them using MyDAC version 6.10.0.7. Please check that you don't have old MyDAC sources.

GeuzeAut
Posts: 1
Joined: Wed 15 Jun 2011 07:57

Post by GeuzeAut » Wed 15 Jun 2011 08:15

Hi. I have the same problem with the newest version.

MySQL: 5.5.13 (x32)
MyDAC: 6.10.0.7
Windows XP
Delphi 2009

Removed old MyDAC complete, removed the bpl files, reinstalled, rebuild, but no luck: #08501Bad handshake

The connection fails only runtime, designtime connect work, runtime not.?

Tested:
1. New project
2. Drop MyConnection on form
3. Set connection to MySQL 5.5.13 (localhost in my case), select a DB
4. Connection works
5. Set designtime connected property to false
6. Drop button, with eventhandel myconnection1.connected := true
7. Error

AndreyZ

Post by AndreyZ » Fri 17 Jun 2011 10:44

It really looks like you have old MyDAC sources. Please check that you don't have any links to old MyDAC sources (or dcu files) in Library Path and in your project options. This is the only explanation why you can connect in design-time, and cannot connect in run-time.

Post Reply