|
-
Apr 3rd, 2007, 09:57 PM
#1
Thread Starter
Hyperactive Member
MySql question
How do I connect to a mysql database thats on a server? Im using vb .net 2005. Thanks
-
Apr 3rd, 2007, 10:39 PM
#2
Re: MySql question
See www.connectionstrings.com for all manner of connection string formats, including the one you want.
-
Apr 5th, 2007, 12:14 AM
#3
Thread Starter
Hyperactive Member
Re: MySql question
Do I need to use a special control?
-
Apr 5th, 2007, 12:41 AM
#4
Re: MySql question
There are no controls involved. Controls are UI elements.
You use the standard ADO.NET methodology using a data namespace that can access MySQL. You can use System.Data.Odbc, which is part of the .NET Framework, or you can use a third-party library that is designed specifically for MySQL. I'd suggest the latter, and there is such a library available free from MySQL themselves.
Once you've decided on the namespace you perfrom the standard ADO.NET operations. If you use the MySQL library you'll be using a MySqlConnection, MySqlDataAdapter, etc. I'd suggest that you read some ADO.NET tutorials to get the basic principles. Any tutorial will do as the principles are the same no matter the data source. For instance, you can read the tute from fellow member TechGnome's signature. It's designed for SQL Server but all you have to do is change SqlConnection to MySqlConnection, etc., get the right connection string format and you're away.
-
Apr 5th, 2007, 05:42 AM
#5
Thread Starter
Hyperactive Member
Re: MySql question
Thanx for the info, you are the man
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
|