I use this code.
Code:
private void button1_Click(object sender, System.EventArgs e)
{
string MyConString = "SERVER=localhost;" +
"DATABASE=DB;" +
"UID=root;" +
"PASSWORD=root;";
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = connection.CreateCommand();
MySqlDataReader Reader;
command.CommandText = "select * from mycustomers";
connection.Open();
Reader = command.ExecuteReader();
while (Reader.Read())
{
//I put this after :)
}
connection.Close();
}
Somebody know the fail?
The yellow text is fail in my conpiler...