Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB DataEnvironment with MySQL

Status
Not open for further replies.

rmdl1975

Programmer
Jan 4, 2006
3
BR
I have a db in MySQL and I want to use VB DataEnvironment, but I do not get the conection to work.
In the connection I select the "OLE DB Provider for ODBC Drivers", then I select "MySQL" driver, then I put the user, pass and the name of DB.
When I do the connection test I obtain that error:
"Failure in the test to the connection due to a mistake in the initialization of the vendor. Catastrophic failure."

Does anybody know how to do this?
Thanks, in advance.
 
Through connection string its everithing ok, I manage the db without any problem.

db.Open "PROVIDER=MSDASQL;dsn=MySQL;uid=root;pwd=;database=db;"

Only in VB DataEnvironment gives that error. Does anybody know the reason?
 
Thanks dglienna, I tried to get the ConnectionSource manual and it works fine. ;)

DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;PORT=3306;DATABASE=db; USER=root;PASSWORD=;OPTION=3;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top