如何连接到MySQL数据库? [英] How to connect to MySQL Database?

查看:129
本文介绍了如何连接到MySQL数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#编程的新手,但希望能够访问MySQL数据库(没有MS SQL的钱)

I'm very new to C# programming but would like to be able to access MySQL Databases (do not have the money for MS SQL)

但我有一个题;我知道你需要有MySQL连接器/ NET和Visual Studio for Visual Studio用于开发C#应用程序,但安装该应用程序的人也需要他们? (是否可以使用程序释放连接器DLL?)

However I have one question; I know you are required to have "MySQL connector/NET" and "MySQL for Visual Studio" for developing the C# application, but does the person who installs the application also require them? (Is it possible I can just release the connector DLL with the program?)

感谢

它们都需要为最终用户或只是连接器?是否还有其他需要?

Are both of them required for the end-user or just the connector? Is there anything else they would need?

推荐答案

您可以使用软件包管理器将其添加为软件包,这是最简单的方法做。你不需要任何其他东西来使用mysql数据库。

you can use Package Manager to add it as package and it is the easiest way to do. You don't need anything else to work with mysql database.

或者您可以在软件包管理器控制台中运行以下命令

Or you can run below command in Package Manager Console

PM> Install-Package MySql.Data

NUGET Mysql.Data

这篇关于如何连接到MySQL数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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