【问题标题】:Keyword not supported. Parameter name: integrated security不支持关键字。参数名称:综合安全
【发布时间】:2012-03-03 15:24:00
【问题描述】:

大家好,当我尝试从 App.config 文件中检索连接时,我收到了指定的错误。

我的App.Config如下

<add name="Conn" 
     connectionString="Data Source=SYSTEM19\SQLEXPRESS;Initial Catalog=Dora;Integrated Security=True" 
     providerName="System.Data.SqlClient" />`

在这行代码中,我得到了提到的错误,任何人都可以帮助我

dataAdapter = new MySqlDataAdapter(selectCommand, MyConnectionString);

【问题讨论】:

  • 您似乎正在使用带有 MySqlDataAdapter 的 SQL Server 连接字符串。你的数据库是 SQL Server 还是 MySQL?
  • Roy Goode 很好,即使我想知道我是如何这样使用的。无论如何我都修好了。
  • 你真的解决了吗?它似乎仍然令人困惑。
  • 是的,我按照Roy 说我引用了错误的数据库来修复它

标签: c# winforms app-config


【解决方案1】:

MySQL Connection String

Integrated Security 不是 MySQL 连接字符串的有效关键字

【讨论】:

  • 我发现Protocol也是一个问题,给出同样的错误
【解决方案2】:

我遇到了这个问题,因为我缺少 Initial Catalog= 位!

【讨论】:

    【解决方案3】:

    我遇到了这个问题,因为安全一词在下一行!

    【讨论】:

      猜你喜欢
      • 2012-03-03
      • 1970-01-01
      • 2018-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多