473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Connecting to MySQL

I am trying to design a program that will use data from a MySQL database.
Currently all the data is being used with PHP scripts from a website. I am
also trying to build a software solution that can use the same data. I have
gone through all the data connectors in Visual Basic.net and none of them
have the options for connecting to MySQL. Does anybody know how I would go
about doing this? Thanks in advance!

Jeremy
Nov 21 '05 #1
3 2212
Jeremy --

From what I have read, and the little experimentation that I have done with
..NET and MySQL, it appears that MySQL doesn't fully support OleDB (yet).
So, I would research the ODBC provider for .NET:

http://msdn.microsoft.com/library/de...emdataodbc.asp

You can't build Stored Procs in MySQL (from my experience, anyone help me
out here..)
But you can build a DataFactory class in .NET for accessing MySQL with ODBC,
and possibly use "prepared statements"...

-- Will G.
"Jeremy Dillinger" <je*****@hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
I am trying to design a program that will use data from a MySQL database.
Currently all the data is being used with PHP scripts from a website. I am
also trying to build a software solution that can use the same data. I have gone through all the data connectors in Visual Basic.net and none of them
have the options for connecting to MySQL. Does anybody know how I would go
about doing this? Thanks in advance!

Jeremy

Nov 21 '05 #2
Hi,

.Net class for connecting to mysql databases.
http://dev.mysql.com/downloads/connector/net/1.0.html

Ken
----------------------
"Jeremy Dillinger" <je*****@hotmail.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
I am trying to design a program that will use data from a MySQL database.
Currently all the data is being used with PHP scripts from a website. I am
also trying to build a software solution that can use the same data. I have
gone through all the data connectors in Visual Basic.net and none of them
have the options for connecting to MySQL. Does anybody know how I would go
about doing this? Thanks in advance!

Jeremy

Nov 21 '05 #3
Hi Jeremy,

you can connect your .NET programs with MySql without problems.

You have two different ways.

One of them is connecting it through of ODBC.
If you have .NET Framework 1.0, you'll have to install ODBC .NET.
For .NET FW 1.1 it isn't necessary.
ODBC .NET Data Provide
http://www.microsoft.com/downloads/d...2-D165078E32B1

The other way is connecting with OleDb.
For this, you need the correct APIs (or drivers) to do it.

MySQL recomends the next free drivers (there are a lot of drivers, but they
aren't free):
ODBC
http://dev.mysql.com/downloads/connector/odbc/3.51.html
OleDb
(Beta)
http://dev.mysql.com/downloads/connector/net/1.0.html
(Beta and external Open Source development)
http://sourceforge.net/projects/mysqldrivercs/

for more information:
http://dev.mysql.com/downloads/

I hope that helps.

Kind Regards,

Jorge Serrano
MVP VB.NET

"Jeremy Dillinger" wrote:
I am trying to design a program that will use data from a MySQL database.
Currently all the data is being used with PHP scripts from a website. I am
also trying to build a software solution that can use the same data. I have
gone through all the data connectors in Visual Basic.net and none of them
have the options for connecting to MySQL. Does anybody know how I would go
about doing this? Thanks in advance!

Jeremy

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
2
by: news | last post by:
We currently have our mySQL server on the same box as the Apache server. For security and load balancing, we're going to be moving the mySQL server to another box. We're already using a single...
4
by: CodeImp | last post by:
A simple app I quickly wrote to try getting info from a database. Here is the first part of its code. The rest of the code is irellevant. using System; using System.Data; using...
4
by: sympatico | last post by:
Hello Im seeking some code or way to connect VB.NET application with MySQL database. There are some softwares available which are very expensive. So anyone who knows to connect without a...
7
by: Frances | last post by:
this seems pretty straight-forward.. got this code $link = mysql_connect('localhost:3306', '<uid>', '<pswd>'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected...
3
by: Paradox Synthesist | last post by:
hi, i am a newbie to asp.net and have started learning mainly from websites. i have a question which IS very silly and trivial. ...
5
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql server with java application but when i try to compile,the compilation is successful and during execution i get the following message, ...
8
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql with java in eclipse environment. Coding Part: import java.sql.Connection; import java.sql.DriverManager; public class...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.