Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

Provider cannot be found. It may not be properly installed. Context ADO-MySQL-Delphi

I installed the ODBC driver for MySQL on W2K (Have Delphi 7 enterprise)
The ODBC shows everything right
When trying using ADO in Delphi, I get : Provider cannot be found. It may not be properly installed.
as soon as I try to connect.
The Provider properties does not show the "MySQLProv" but I force it in the connectionstring...
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Apparantly you don't have an ADO provider for MySQL... Try connection by using an ODBC connection to MySQL instead.
Avatar of geobul
geobul

Hi,

Install MyOLEDB driver for ADO instead of using ODBC.

Regards, Geo
Avatar of LeTay

ASKER

A little bit better with MyOLEDB for ADO installed
Now when in the Delphi development I 'build' in the connectionstring, I get the list of provider and MysqlProv is there. I continue setting, click on 'test connection'.
There I get a MySQL data source name setup screen (look ODBC ???)
It look correct (says default in the name, but server and db and UID are okay)
I click ok and now I get this : "test connection failed because of an error in initializing provider. unspecified error"
ASKER CERTIFIED SOLUTION
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LeTay

ASKER

Good suggestion, Alex.
I will try that DBExpress.
Hope I don't have too many things to install on that of W2K and Delphi 7 ...
Avatar of LeTay

ASKER

Well, I had to find the 'right' libmysql.dll as the one provided with the Windows client for mysql was not working (5.x)
I succeeded to access a remote DB mysql on another machine, with a user without password.
But now when I put a password and adapt the connection parameter accordingly it fails (invalid username/password).
Trying however with a tool like mysql from a prompt it works, the connection is established.
Looking on the server (show status) I see the abort_connects increased by 1 each time I try activating the connection from Delphi.
I wonder if I shouldn't do something special to have that password correctly passed to the DB ?
Avatar of LeTay

ASKER

Found the problem : no authorisation on the database.
Now everything runs fine