con questo codice mi collego a mysql
using MySQLDriverCS;
try
{
MySQLConnection con;
con = new MySQLConnection( new MySQLConnectionString("localhost",
"database",
"user",
"pass").AsString );
con.Open();
string sql = "SELECT * FROM Table";
MySQLCommand cmd = new MySQLCommand(sql,con);
MySQLDataReader reader = cmd.ExecuteReaderEx();
while(reader.Read())
{
Console.WriteLine( reader[0].ToString() );
}
reader.Close();
con.Close();
}
catch(Exception ee)
{
Console.WriteLine( ee.ToString() );
}
adesso mi servirebbe poter estrarne i dati in tabelle o datagrid e poterli paginare.
mi consigliate un tutorial o mi fate un esempio di codice?