Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 June 11th, 2007, 09:23 AM
Authorized User
Join Date: Dec 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default dotnet with MySQL


How can I use MySql with dotnet? I have installed MySQL 5.0 and Visual studio 2.0. Is there any other thing needed to work with MySQL? How to write the connection string to connect the database in MySQL?


Old June 11th, 2007, 09:54 AM
Friend of Wrox
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post

You can try the link below for assistance:



Don't expect too much, too soon.
Old June 13th, 2007, 05:12 PM
Authorized User
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles

The connection string follows this format:
Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword;

Its easy to find on the net. To get MySql running with .Net I had to download and install a module. I'm not at the right computer now to get the name of it but it was mysqlConnector or something similar. I can repost later with the file name if you want.

Old June 13th, 2007, 08:39 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Both instances will work, I prefer Mikes way of doing things. It is ture that you can download a MySQL connector from mysql.com that will allow you to do something similiar to this inside your classes:

using System.Data.MySQL (don't quote me on it as I have never truly used it; essentially it is just a DLL that is optimized to run with the MySQL server, my like the System.Data.SqlClient/Oracle, etc.)

================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
================================================== =========
Why can't Programmers, program??
================================================== =========

Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid in dotnet kejalmistry BOOK: ASP.NET Website Programming Problem-Design-Solution 1 September 12th, 2005 06:58 AM
Dotnet problem ginnyc0802 VS.NET 2002/2003 1 June 1st, 2005 09:13 AM
Functionality in Dotnet anand_asv General .NET 1 April 8th, 2005 02:49 AM
Curosrs in dotnet er_jyoti ADO.NET 5 March 31st, 2005 06:15 AM

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