TDBXError "Unknown driver: DevartMySQLDirect"

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for MySQL in Delphi and C++Builder
Post Reply
rfish
Posts: 7
Joined: Mon 08 Nov 2004 14:28
Location: Fredericksburg, VA

TDBXError "Unknown driver: DevartMySQLDirect"

Post by rfish » Thu 27 Aug 2009 18:33

Using Builder 2009 and MySQL dbexpress 4.40.0.16 i get the above error.


This code worked fine under Builder 2007

Code: Select all

connection->ConnectionName = "Devart MySQL Direct";
connection->DriverName = "DevartMySQLDirect";
connection->LibraryName = CRLIB;
connection->VendorLib = "not used";
connection->GetDriverFunc = "getSQLDriverMySQLDirect";
connection->Params->Clear();
connection->Params->Values["Database"] = dbaseName;
connection->Params->Values["HostName"] = fullHost;
connection->Params->Values["Port"] =IntToStr( port);
connection->Params->Values["User_Name"] = this->userID;
connection->Params->Values["Password"] = this->password;
connection->Params->Values["Connection Timeout"] = IntToStr(30);
connection->Connected = true;
What is going on?

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

Post by Dimon » Fri 28 Aug 2009 06:21

To solve the problem add the DbxDevartMySql unit to the uses clause of your unit.

rfish
Posts: 7
Joined: Mon 08 Nov 2004 14:28
Location: Fredericksburg, VA

Post by rfish » Wed 09 Sep 2009 17:21

Thanks, that sure did fix it.

Just to be complete, the following code in C++ does the trick:

Code: Select all

#pragma package(smart_init)
#pragma link "DbxDevartMySQL"

Post Reply