Page 1 of 1
dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Fri 08 Jun 2012 12:11
by datafile_eric
Anyone using dbexpress driver for mysql with Mac OS X?
got a error message "Unknow driver: DevartMySQL Direct"
I called Direct Method, as below, which works fine for windows(with different libraryname)
SQLConnection.DriverName := 'DevartMySQL Direct';
SQLConnection.LibraryName := 'libdbexpmda40.dylib';
any idea what is wrong with it? or any working example code
Eric
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Mon 11 Jun 2012 08:43
by AndreyZ
Hello,
The point is that you set the incorrect driver name. To solve the problem, you should set the DriverName property to 'DevartMySQLDirect' (without spaces) instead of 'DevartMySQL Direct'.
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Mon 11 Jun 2012 10:21
by datafile_eric
I have tried DevartMySQLDirect without space, then the error message become "Unknow driver: DevartMySQLDirect"
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Mon 11 Jun 2012 13:56
by AndreyZ
To solve the problem, you should add the DbxDevartMySql unit to the USES clause of your unit.
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Mon 11 Jun 2012 15:57
by datafile_eric
I tried include the unit in Devart\Dbx\MySql\Delphi16\OSX32\DbxDevartMySql.dcu as below,
DbxDevartMySql in ".\dcu\OSX32\DbxDevartMySql.dcu";
now it will not compile, [DCC Fatal Error] : F2051 Unit DbxDevartMySql was compiled with a different version of Data.DBXCommon.TDBXDriverDef
I am using "Embarcadero® Delphi® XE2 Version 16.0.4276.44006"
Eric
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Mon 11 Jun 2012 16:50
by datafile_eric
also tried include
Devart\Dbx\MySql\Source\DbxDevartMySql.pas
got the same error message,if I remove it from the unit list, it will compile and works for windows only.
Re: dbx driver for max osx error: "Unknow driver: DevartMySQL Direct" with libdbexpmda40.dylib
Posted: Tue 12 Jun 2012 07:39
by AndreyZ
The point is that the latest dbExpress driver for MySQL version 5.1.3 requires Update 4 for RAD Studio XE2 (16.0.4429.46931). You can find a note about this in the dbExpress driver for MySQL revision history (the History.html file) and at our website at
http://www.devart.com/dbx/mysql/compatibility.html . To solve the problem, you should install RAD Studio XE2 Update 4.