There's plenty of good articles online about getting the busy with C# / mySQL connector. Others include this one at nystic.com, and this one at bitdaddys.com. This is meant to be a sort of "Hello, World" set of instructions.
The following code exemplifies usage of the mySQL component. On a form with a button and a text box:
private void button1_Click(object sender, EventArgs e) {
string Server = "your_server";
string Database = "your_database";
string Username = "your_user";
string Password = "your_password";
string Table = "your_table";
string ConnectionString = "SERVER=" + Server + ";DATABASE=" + Database + ";UID=" + Username + ";PASSWORD=" + Password;
MySqlConnection connection = new MySqlConnection(ConnectionString);
MySqlCommand command = connection.CreateCommand();
MySqlDataReader Reader;
command.CommandText = "select * from " + Table;
connection.Open();
Reader = command.ExecuteReader();
textBox1.Text = "";
while (Reader.Read())
textBox1.Text += Reader.GetValue(i).ToString() + "n";
connection.Close();
}
A sloppy implementation of Black Scholes on the TI-83 Plus. Read.
For that project where using MS SQL isn't going to cut it. Read.
For the most part, we took it seriously. Read.
There's nothing cooler than a really small machine running linux. This is a collection of notes from the install, setup, and tweaking of the system running Ubuntu 6.06 LTS (Dapper Drake). It's probably a little over verbose. Read.
Hey Mike Sklut, you're a computer nerd, what kind of laptop should I get? Read.
The Grossi Caesar salad. Read.
Thinkpad - for players. But what about a Windows key? Read.
For when you already have spyware and want it removed ASAP. A good starting point. Read.
FTP may no longer be suitable for your file transferring needs. Here's the basics to SCP and where you can find some nifty GUI clients. Read.
A short review of the Jens of Sweden MP110 mp3 player. Read.