【问题标题】:ASP.NET configuration with MySQL database? [duplicate]带有 MySQL 数据库的 ASP.NET 配置? [复制]
【发布时间】:2012-07-23 14:04:41
【问题描述】:

可能重复:
How do I setup ASP.NET MVC 2 with MySQL?

大家好,我创建并配置了一个 mySQL 数据库,并且正在使用 ASP.NET MVC 框架。我应该使用什么连接字符串来连接我的数据库?

谁能推荐我可以使用的教程或书籍资源?

【问题讨论】:

标签: asp.net mysql


【解决方案1】:
【解决方案2】:
<connectionStrings>    
    <add name="LocalMySqlServer" connectionString="Data Source=localhost;Database=xxxxx;User Id=xxxxx;Password=xxxxxxxx;" providerName="MySQL.Data.MySqlClient"/>
</connectionStrings>

希望这会有所帮助!

【讨论】:

    【解决方案3】:

    http://www.connectionstrings.com 包含来自不同数据库的大部分连接字符串的列表。

    可以在此处找到 MySQL 部分:http://www.connectionstrings.com/mysql

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-03
      • 1970-01-01
      • 2012-12-15
      • 1970-01-01
      • 2016-05-02
      • 2015-09-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多