Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2004, 11:12 PM
Authorized User
 
Join Date: Sep 2003
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.

 
Old January 6th, 2004, 06:31 AM
Authorized User
 
Join Date: Sep 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
UK





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





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