Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2004, 11:12 PM
Authorized User
Join Date: Sep 2003
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to conundrum Send a message via AIM to conundrum Send a message via Yahoo to conundrum
Default Connecting a C# application to a MySQL DB

I want to connect a C# app to a MySQL Db but keep getting an error message telling me that the adapter type is incorrect. I have tried both the OLE and SQL adapters. with the MyODBC as the connection type.

Reply With Quote
  #2 (permalink)  
Old January 6th, 2004, 06:31 AM
Authorized User
Join Date: Sep 2003
Location: Cambridge, , United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Firstly download the MDAC 2.8 (available from http://www.microsoft.com/downloads/d...DisplayLang=en)
at time of writing this was most recent.

Then ensure MyODBC has been downloaded. This is available form MySQL website under downloads. I used a dummy Access connection for testing the connection proving the drivers worked. After this I used the connection string from http://www.connectionstrings.com. If this fails, try the instructions at http://www.planetsourcecode.com/vb/s...1288&lngWId=10 selecting .NET when it asked for the forum you require. It is entended for VB .NET users, but it is easy enough to adapt to C#, using your current connection string.

when using the URLs, it might be worth copying them to the clipboard and pasting them, when I looked at this message, half the URLs didn't render correctly!

Hope that works for you
David Thorne, Student
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting mysql to php?? Manu Sharma BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 March 5th, 2007 01:40 AM
Connecting to MYSQL from C / C++ ? oloeriubogdan Linux 1 December 15th, 2006 10:50 AM
how to interface MySQL db with gtk application sagarkoirala Linux 0 November 15th, 2004 01:12 PM
Connecting to mySQL WIx ASP.NET 1.0 and 1.1 Basics 3 October 17th, 2004 04:13 PM
Connecting to Mysql as admin najib PHP Databases 1 November 18th, 2003 11:09 PM

All times are GMT -4. The time now is 03:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.