Related Documentation Download this Manual Excerpts from this Manual


This page has moved or been replaced. The new page is located here:

Please update any bookmarks that point to the old page.

Download this Manual
User Comments
  Posted by Oliver Jones on September 22, 2010
If you're developing code that may need to interact with other data base servers, you may want to use the common data base classes rather than the mySql-specific ones.

using System.Data.Common;
DbProviderFactory fac = DbProviderFactories.GetFactory("MySql.Data.MySqlClient");
DbConnection con = fac.CreateConnection();
con.ConnectionString = "connection string";

Sign Up Login You must be logged in to post a comment.