Trouble Connecting

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mfbrowne
Posts: 13
Joined: Mon 15 Nov 2010 00:17

Trouble Connecting

Post by mfbrowne » Sun 16 Jun 2013 01:50

Hello,

I am new using the unidac controls and I am having trouble connecting to my mysql database. I am using the following to connect:

I am using Builder 2010


TUniConnection* HdbcDB;
HdbcDB = new TUniConnection(this) ;// *UniConnection
HdbcDB->LoginPrompt = false ;
HdbcDB->ProviderName = "MySql" ;
HdbcDB->Server = "127.0.0.1" ;
HdbcDB->Username = "root" ;
HdbcDB->Password = "pass" ;
HdbcDB->Database = "QuestDB" ;
HdbcDB->Port = 3306 ;
HdbcDB->Connect() ;


I am getting and "Bad Handshake" error.

I have tried to reinstall the controls as per the information on the forum, however this does correct the problem.

Could someone help me in respect to this problem.

Thanks

Mike

mfbrowne
Posts: 13
Joined: Mon 15 Nov 2010 00:17

Re: Trouble Connecting

Post by mfbrowne » Tue 18 Jun 2013 12:26

Hello,

Just wondering if anyone can assist me in this problem.

Thanks
Mike

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: Trouble Connecting

Post by DemetrionQ » Tue 18 Jun 2013 16:34

Hello.

    This error is already fixed (since UniDAC 3.70.0.18). To solve the problem, you should use UniDAC 3.70.0.18 or newer. You can download UniDAC from Registered Users' Area.
    When you buy UniDAC, you will receive a registration mail, where you can find a link, user name and password for Registered Users' Area. Please visit Registered Users' Area. When you log in to the account, you will see the list of UniDAC versions available to you. If UniDAC 3.70.0.18 or higher is not in the list, this means your subscription has expired before UniDAC 3.70.0.18 was released. In this case you should renew subscription. You can do it at http://www.devart.com/unidac/ordering.html , Renewals & Upgrades section.
    When you renew subscription, you will be able to use the latest UniDAC version.

If you already use UniDAC 3.70.0.18 or newer, but you still get the "BAD HANDSHAKE" error, try the following:
  - uninstall UniDAC;
  - remove all *dac*.bpl and *crcontrols*.bpl files from your computer;
  - remove *.dcu files from your project;
  - reinstall UniDAC.

Post Reply