selena1
Programmer
- Apr 7, 2003
- 69
I have made a Delphi 7 application that use MySQL database as desktop database. I have used ADO components for connecting and manipulating with database. ADOConnection component connect with database using connection string. When I build connection strig I set following values:
Provider : MySQL.OLEDB Provider
Data Source : Members (my database name)
I didn't changed anything else.
For packing my application I have used "InstallShield Borland Limited Edition". In the package I have include:
1) .exe file
2) database file
3) ADO Data Control 6.0 (Objects/Merge Modules)
After I have distributed my release to CD, I have tried to install application on my computer. Everything work fine. But, trouble is when I install application on some other computer. After I start my application I get error: "Provider configure incorrect." Or something like that. Whwre have I made a mistake? Even if I succeed to instal application to other computer, how I can accomplish that my appliction find the database file no matter where the application and database have installed. I mean, how to avoid hardcoding "Connection string" ?
I have used: mySQL 4.0.13.
MyOleDB3
THANKS!
Provider : MySQL.OLEDB Provider
Data Source : Members (my database name)
I didn't changed anything else.
For packing my application I have used "InstallShield Borland Limited Edition". In the package I have include:
1) .exe file
2) database file
3) ADO Data Control 6.0 (Objects/Merge Modules)
After I have distributed my release to CD, I have tried to install application on my computer. Everything work fine. But, trouble is when I install application on some other computer. After I start my application I get error: "Provider configure incorrect." Or something like that. Whwre have I made a mistake? Even if I succeed to instal application to other computer, how I can accomplish that my appliction find the database file no matter where the application and database have installed. I mean, how to avoid hardcoding "Connection string" ?
I have used: mySQL 4.0.13.
MyOleDB3
THANKS!