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

mysql ole db connection

Status
Not open for further replies.

jennyflower

Programmer
Oct 10, 2006
60
GB
Hi, i am trying to connect to a mysql database with oledb. I have installed myodbc3 and am using vb.net with visual studio 2005. When I try and connect using the following connection string:

"Provider=MySQLProv;location=localhost;Data Source=eurospec;User ID=" & Username & ";Password=" & Password & ";option=3;port=3306;"

I get a dialog box appearing called "MySQL Data Source Name Setup". I don't want to set up a dsn which is why I am using oledb.

Have I got this completely wrong and need a dsn to use oledb with mysql? or is my connection string wrong in some way? I just want to connect and no dialog boxes appear at all.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top