rainowl-ymj

首先需要安装“.net支持”连接mysql的驱动,去http://www.mysql.com/downloads/connector/net/下载并安装。
然后就可以在vs2010的server explorer添加连接了。
在程序中你也可以用连接字符串,比如:
<add name="mySql"      connectionString="Server=localhost;Database=mydb;Uid=User;Pwd=mypass;"       providerName="MySql.Data.MySqlClient"/>

具体教程http://www.itcsolutions.eu/2010/09/09/how-to-connect-to-mysql-database-from-visual-studio-vs2010-problems-with-net-connectors/

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2021-04-18
  • 2021-06-01
  • 2021-12-21
  • 2021-08-31
  • 2021-04-08
猜你喜欢
  • 2021-11-05
  • 2021-05-29
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案