I'm new to c# programming and I got a problem to query a mySql table, please help.

I have set up a mySQL DB and wants to query a table called 'User' by sorting the index 'passwd' in the table---the 'passwd' is a 'varchar' type.

```
private void button1_Click(object sender, EventArgs e)
    {
        string connString = "server = 123.123.123.123; database=sample; uid = test;Password=test123";
        conn = new MySqlConnection(connString);
        conn.Open();
        MessageBox.Show("DB Connected");

        try
        {

            command = conn.CreateCommand();
            command.CommandText = "SELECT d,u FROM user  WHERE passwd=" + textBox2.Text;
             ...
        }

```

It looks like the last sentence 

```
command.CommandText = "SELECT d,u FROM user  WHERE passwd=" + textBox2.Text; 

```

doesn't work. However if I change to another query 

```
command.CommandText = "SELECT d,u FROM user  WHERE  port=" + int.Parse(textBox1.Text); 

```

then it's working fine. So it must be doing something wrong with the last sentence 

```
command.CommandText = "SELECT d,u FROM user  WHERE passwd=" + textBox2.Text;

```