MySQL 数据源未出现在 Visual Studio 中 [英] MySQL Data Source not appearing in Visual Studio

查看:54
本文介绍了MySQL 数据源未出现在 Visual Studio 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从这里安装了 ADO.NET 连接器

  • VS 插件下载
  • 我在此处找到了解决方案,感谢@LambertHeenan.


    关于 Visual Studio Express 的注意事项

    OP 询问 Visual Studio Express 是否支持 MySQL(据我所知有 更名为 Visual Studio 社区).过去 MySQL 官方不支持 Visual Studio Express,根据下面@Paul 的回答,但根据 此页面.

    I just installed the ADO.NET connector from here http://dev.mysql.com/downloads/connector/net/

    Yet MySQL doesn't appear as a data source like it should. I tried restarting Visual Studio. It doesn't fix my issue. Did I install the wrong connector?

    EDIT: STill nothing. I'm using Visual Studio Express For Desktop. Do I need to pay for the Ultimate edition to use a MySQL Data Source?

    解决方案

    I was having the same problem just now. I solved it by uninstalling the latest Connector/NET drivers (6.7.4) and then installed the older drivers (6.6.5) and it works.

    I am using Visual Studio 2010. I uninstalled the latest ones because I figured they were somehow related to .NET4.5, which I'm not able to use.


    Update #1:

    Supposedly another way is to register the MySql Connector with various Visual Studio versions (2010/2012/2013/2015...) during installation: Go to Modify Product Features and select all the relevant Visual Studio versions.


    Update #2 - Visual Studio 2019 Update:

    When I installed MySQL Community with the ConnectorNET and VisualStudio Plugin options included - MySQL didn't show up as a data provider in Visual Studio.

    The installer I used included the VS Plugin version 1.2.9, which had supposedly fixed installation issues from 1.2.8, but still didn't work for me...

    The solution for me was to uninstall the Connector and the Visual Studio Plugin, download them as individual components, and then install them separately (not as part of the MySQLServer Installer). Install the Connector first, then VS plugin after.

    I found the solution here, Thanks to @LambertHeenan.


    NOTE about Visual Studio Express

    The OP asks whether MySQL is supported with Visual Studio Express (which as far as I can tell has been renamed to Visual Studio Community). In the past MySQL officially didn't support Visual Studio Express, as per @Paul's answer below, but they do officially support Visual Studio Community 2017 and 2019, according to this page.

    这篇关于MySQL 数据源未出现在 Visual Studio 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆