At work we use UniDAC Pro, so I decided to use UniDAC for my hobby MySQL project as well. After trying out the trial version for 30 days, I settled for the free Express Edition, but now I'm faced with a problem (my code no longer compiles).
Here's a quick section of my Delphi code, I'm trying to access a MySQL DB on localhost.
Code: Select all
prov := TMySQLUniProvider.Create(nil);
conn := TUniConnection.Create(nil);
conn.ProviderName := prov.GetProviderName;
Commenting out the provider bits (I read in the charts the Express edition doesn't work with providers), I can get it to compile, but it doesn't work - if I change the prov.getProviderName with a string "MySQL", I get the following error:
Code: Select all
MySQL provider is not registered. You should add the MySQLUniProvider unit to the uses clause of any unit in your project or place the TMySQLUniProvider component on the form.

Can anyone point me in the right direction please?
Thanks!
Marlon