File not found: MyConnectionString.dcu
Posted: Fri 26 Dec 2014 00:55
Hi all,
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.
Compiling my code gives the error "File not found: MyConnectionString.dcu", probably because of the MySQLUniProvider being used.
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:
So either there was something missing during install (the specified MyConnectionString unit), or (much, much more likely
) I'm trying to connect in an incorrect way.
Can anyone point me in the right direction please?
Thanks!
Marlon
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