troubleshooting Question

How to declare relevant classes and instantiate MySqlConnection object for connection to MySQL DB in ASP.NET

Avatar of psk1
psk1 asked on
MySQL Server.NET Programming
15 Comments1 Solution612 ViewsLast Modified:
I'm just getting started with attempting to connect to a MySQL database from ASP.NET (VB, web app).  I need to know how to declare the relevant classes and initiate the connection.

The MySQL DB is on a different server on the same LAN and I'd like to use a named pipe to access it, though I would also accept code that will connect using TCP/IP to get started.

So, what do I declare at the top of the page, and what code do I then use to instantiate the MySqlConnection object?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 15 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros