无法在 C# 应用程序中添加到 MySQL 的连接 [英] Cannot add connection to MySQL in C# application

查看:29
本文介绍了无法在 C# 应用程序中添加到 MySQL 的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 已安装,它应该显示在 .NET 选项卡中.

如果没有你可以直接点击浏览选项卡,然后直接添加程序集,它应该在

<块引用>

C:\Program Files\MySQL\MySQL 连接器Net 6.0.4\Assemblies

或者诸如此类.

I am trying to connect MySQL to Windows following the instructions given here.

I have installed MySQL 5.1 software, GUI tools and MySQL connector. MySQL is working fine.

I want to establish connection between the MySQL database and a C# Windows application. But I am not able to find "MySql.Data" in add references tab in the C# Windows application. Can anyone help me to solve this issue?

Please refer to the screenshot below:

解决方案

If you really have the Connector/NET installed, it ought to show up in the .NET tab.

If not you can just click the Browse tab, and add the assembly directly, it should be under

C:\Program Files\MySQL\MySQL Connector Net 6.0.4\Assemblies

or somesuch.

这篇关于无法在 C# 应用程序中添加到 MySQL 的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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