[英]Tools for Debugging ThreadPool Issues in Visual Studio 2010
[英]Can I connect mysql to visual studio 2010 express visual tools
我的問題是Express Edition vs Professional,我是否可以在快遞版中使用MySql .net連接器的數據庫連接? 或者它只適用於專業版? 我正在使用快遞,我已經嘗試了最新的.net連接器,它仍然沒有顯示在數據庫連接列表中。
由於快遞產品的限制,MySQL Connector / NET將無法在Microsoft Studio的Express版本中運行。 要使用基於服務器體系結構的數據源,必須使用非“Express”版本。 除了本地有限的“Compact”或“Express”版本之外,連接到微軟自己的MSSQL也行不通。
在Express Edition中,您可以將dll conector添加到項目引用中:
添加引用
mysql.data.dll
然后像課一樣使用它:
Imports MySql.Data.MySqlClient
Public Class Form1
Dim mycon As New MySqlConnection
Dim myadp As New MySqlDataAdapter
搜索mysql文檔以獲取更多信息。
要在C#中使用,在添加引用后,您可以像這樣使用它:
// Put this at the top of the file, with the other "using..." lines
using MySql.Data.MySqlClient;
// [...]
public Form1() {
MySqlConnection myCon = new MySqlConnection();
MySqlDataAdapter myAdapter = new MySqlDataAdapter("SELECT * FROM foo;", myCon);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.