|
-
May 31st, 2007, 09:21 AM
#1
Thread Starter
Frenzied Member
how to connect to mysql database
i just installed mysql, and i am tryign to make a asp.net c# app.
how do i connect to the database?
I wanted to do a simple search, and have it spit out the results...
-
May 31st, 2007, 09:30 AM
#2
Re: how to connect to mysql database
did you download the mysql provider from www.mysql.com
-
May 31st, 2007, 09:34 AM
#3
Thread Starter
Frenzied Member
Re: how to connect to mysql database
 Originally Posted by vbdotnetboy
i dont know what to download on there.
-
May 31st, 2007, 09:37 AM
#4
Re: how to connect to mysql database
-
May 31st, 2007, 09:45 AM
#5
Thread Starter
Frenzied Member
Re: how to connect to mysql database
it says i have to install framework 2.0 first, how do i do that?
-
May 31st, 2007, 09:46 AM
#6
Re: how to connect to mysql database
what version of .net are you using?
-
May 31st, 2007, 09:51 AM
#7
Thread Starter
Frenzied Member
Re: how to connect to mysql database
i know this is dumb. but how do i find out what version? it's 2003 .NET if that helps
-
May 31st, 2007, 10:12 AM
#8
Re: how to connect to mysql database
ok if i remember correctly i believe the 1.0 driver works for this... which can be downloaded here
http://dev.mysql.com/downloads/connector/net/1.0.html
-
May 31st, 2007, 10:59 AM
#9
Thread Starter
Frenzied Member
Re: how to connect to mysql database
ok i downloaded that...
now how do i use it?
i wanted to make a winapp and make it connect to my database, and get values from it.
-
May 31st, 2007, 11:52 AM
#10
Re: how to connect to mysql database
install the provider
add a reference
use it like any other ado.net provider
-
May 31st, 2007, 12:06 PM
#11
Thread Starter
Frenzied Member
Re: how to connect to mysql database
ok geeze im lost lol
ok so i opened up a winapp in .net and went to server explorer on the left hand side, and didnt see it.
-
May 31st, 2007, 12:19 PM
#12
Re: how to connect to mysql database
if you're trying to view the mysql db from within the server explorer this won't work with the provider from mysql... you have to look at buying something like the 3rd party provider that supports this. the only way to be able to view the database from server explorer is to download and install the ODBC driver from mysql's website and make a odbc connection to the database
-
May 31st, 2007, 12:35 PM
#13
Thread Starter
Frenzied Member
Re: how to connect to mysql database
ok ill pass on buying anything lol
how do i connect to it, making a simple vb.net win app?
-
May 31st, 2007, 12:43 PM
#14
Re: how to connect to mysql database
-
May 31st, 2007, 04:43 PM
#15
Re: how to connect to mysql database
Hello there,
You might also want to take a look here.
A very good series of tutorials.
Gary
-
Jun 4th, 2007, 03:06 PM
#16
Re: how to connect to mysql database
-
Jun 5th, 2007, 01:28 AM
#17
Re: how to connect to mysql database
Can i just say for the record that I don't use MySQL, but I have looked into it in the past and know where to get some good tutorials for it!
-
Jun 5th, 2007, 04:50 AM
#18
Re: how to connect to mysql database
 Originally Posted by mendhak
i'm sorry mendhak i didn't even know you had a tutorial for ado... as you can see i've added it to my links now in hopes that you'll forgive me
-
Jun 5th, 2007, 02:02 PM
#19
Re: how to connect to mysql database
I shall think upon it while you fetch my cigar for me.
-
Jun 5th, 2007, 05:17 PM
#20
Thread Starter
Frenzied Member
Re: how to connect to mysql database
Ok i am way confused....
What is ADO.net is it some program that i can use in .NET?
I just want to connect to either an access DB, or MySql DB, and pull some data from it, and put it in a datagrid, thats all.
-
Jun 6th, 2007, 01:56 AM
#21
Re: how to connect to mysql database
Hello,
ADO.Net stands for ActiveX Data Objects for .Net, and it is part of the .Net framework. It is basic a set of data access technogies that let you access and manipulate data. You have probably been using these tools without actually knowing it. For instance, the System.Data.SqlClient Namespace within the framework, gives you access to things such as SqlConnection, and SqlCommand.
What you are trying to do is mix two things that do not come as standard within the .Net Framework. Within the .Net Framework you will find classes and objects to access "Access DB" without any problems and you will literally find dozens of tutorials to do this on the web, however, these objects and classes for accessing a MySQL database do not come as standard within the .Net Framework. However, you can download the MySQL Connector, which once you reference this within your project, you will be able to access a MySQL database in the same way that you would a Access DB, using for instance the MySQLConnection, and MySQLCommand.
I hope that clears things up for you a bit, and I also hope that I am 100% correct in what I am saying! Mend, can you maybe check and make sure? Still learning myself!
Thanks
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|