The use of dbx4mysql is the same as for any of the standard dbExpress drivers supplied by
Borland. For additional details on using a standard driver please refer to help on TSQLConnection
component.
To setup SQLConnection for using dbx4mysql just set at design-time ConnectionName property to dbx4mysqlConnection.
At run-time you would need to set the LibraryName, the VendorLib and the
GetDriverFunc properties. Additionally you would need to set the connection parameters such as
User_Name, Password, HostName and Database to provide login information.
Example:
SQLConnection.DriverName := 'dbx4mysql';
SQLConnection.LibraryName := 'dbx4mysql.dll;
SQLConnection.VendorLib := 'notused.dll';
SQLConnection.GetDriverFunc := 'getSQLDriverdbx4mysql';
SQLConnection.Params.Clear;
SQLConnection.Params.Add('User_Name=root');
SQLConnection.Params.Add('Password=secret');
SQLConnection.Params.Add('HostName=localhost');
SQLConnection.Params.Add('Database=mysql');
SQLConnection.Open;