Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MYSQL and MM
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MYSQL and MM
Miscellaneous
Thread ID:
00934608
Message ID:
00934608
Views:
59
How can i tell MM to use a mySQL db.

I downloaded a Data Provider from http://www.bytefx.com/DotData.aspx

I want to use this DataProvider in MM.

Thanks!

This is there code for getting a connection
using System;
using System.Data;
using ByteFX.Data.MySqlClient;

namespace MyWebApp
{
  public class UserTable
  {  
    public DataSet GetUsers()
    {
      string connString = "server=localhost;database=mydb;user id=user;pwd= pwd";
      MySqlConnectionconn= newMySqlConnection( connString );
      MySqlDataAdapter da = new MySqlDataAdapter("SELECT * FROM Users", conn);

      DataSet ds = new DataSet();
      da.Fill( ds, "Users" );
      return ds;
    }
  }
}
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform