#08501 BAD HANDSHAKE
#08501 BAD HANDSHAKE
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.
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.
stepping through the connection
The code error is mysql error 1043.
Did a internet search on this error and found a lot information from mysql.
Hope this helps.
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
Version problem
Connection works with MYSQL 5.1.53
thanks
thanks
-
AndreyZ
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)
- 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
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
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