public class Core
{
                  public MySqlConnection myConnection;
public MySqlCommand myCommand = null;
public MySqlDataAdapter myDataAdaper = null; public Core()
{
            this.myConnection = new MySqlConnection(ConfigurationSettings.AppSettings ["ConnectionString"]);
这里报错异常详细信息: System.FormatException: 'fales' is an illegal value for a boolean option.
我确定获得的连接字符串为"server=localhost;database=aa;userid=root;password=123;pooling=fales"
不知道什么问题 请高手解答非常感谢
this.myCommand = new MySqlCommand();
this.myCommand.CommandType = CommandType.Text;
this.myCommand.Connection = this.myConnection;
} //执行添加、更新、删除命令
public MySqlCommand QueryCommand(string myCommandText)
{
this.myCommand.CommandText = myCommandText;
this.myConnection.Open();  
this.myCommand.ExecuteNonQuery();
this.myConnection.Close(); return myCommand;
}

解决方案 »

  1.   

    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
      

  2.   

    Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
      

  3.   


    //看下你的Web.config中的ConnectionString是在connectionStrings节还是在appSettings节?
    //如果在connectionStrings节,则应这样写
     ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString
      

  4.   


    //还有如果你的节是在appSettings,你此处也需要转为字符串的
    //MySqlConnection接收的参数是字符串类型的
    ConfigurationManager.AppSettings["ConnectionString"].ToString();