string sql = "Update Login_user Set realname= '" + this.TextBox1.Text + "', password=‘" + this.TextBox3.Text + "’ Where username='" + select + "'";这样试试
首先确认连接字符串没问题,然后加中断调试,复制sql的值,去数据库中执行,可找到问题所在。