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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL ADO connection and catastrophic failure

Status
Not open for further replies.

BiggerBrother

Technical User
Sep 9, 2003
702
GB
I've been using the vbMySQLDirect dll for a few of my apps, but now I need to use an ADO connection for reports and some controls.

I have downloaded and installed the ODBC from the mysql site, and followed all the dos and dont's. I now get an error every time I try and connect to the db, which is 2147418113 - Catastrophic failure.

My connection is:

conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=" & .dbLocation & ";" _
& "PORT=3306;" _
& "DATABASE=" & .dbName & ";" _
& "UID=" & .dbUser & ";PWD=" & .dbPass & ";"
conn.Open

Where am I going wrong? Many thanks

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top