Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 11th, 2007, 09:23 AM
Authorized User
Points: 308, Level: 6
Points: 308, Level: 6 Points: 308, Level: 6 Points: 308, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: Kolkata, West Bengal, India.
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default dotnet with MySQL

hello,

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?

Angshujit

__________________
Angshujit
Reply With Quote
  #2 (permalink)  
Old June 11th, 2007, 09:54 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can try the link below for assistance:

http://www.aspnet101.com/aspnet101/tutorials.aspx?id=39

Regards
Mike

Don't expect too much, too soon.
Reply With Quote
  #3 (permalink)  
Old June 13th, 2007, 05:12 PM
Authorized User
 
Join Date: Jun 2007
Location: Christchurch, , New Zealand.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles
Default

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.

Reply With Quote
  #4 (permalink)  
Old June 13th, 2007, 08:39 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
Reply


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
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



All times are GMT -4. The time now is 12:17 AM.


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