Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MYSQL and MM
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MYSQL and MM
Divers
Thread ID:
00934608
Message ID:
00934608
Vues:
61
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform