统一使用c#访问MySQL数据库? [英] Accessing MySQL database using c# on unity?

查看:75
本文介绍了统一使用c#访问MySQL数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用C#,对此了解不多.我正在使用称为Unity的3d游戏引擎,并试图编写一个c#脚本来访问我正在运行的MySQL数据库. MySQL数据库位于另一台计算机上.我的问题是如何使用C#访问MySQL数据库.我知道我要使用的用户名,密码和数据库,但是我不知道如何访问数据库.

I have just started using C# and do not know much about it. I am using the 3d game engine called Unity and trying to write a c# script to access the MySQL database that I am running. The MySQL database is on a different computer. My question is how can I access the MySQL database using C#. I know the username, password and database I want to use, but I can not figure out how to access the database.

推荐答案

您将需要获得C#MySQL驱动程序: http://dev.mysql.com/downloads/connector/net/

You will need to get the C# MySQL driver: http://dev.mysql.com/downloads/connector/net/

然后您需要按照MySQL手册进行设置和使用.这是一个标准的ADO.NET驱动程序,因此您应该能够阅读大多数C#SQL教程,以获取更多帮助.

And then you will need to follow the MySQL manual for setting it up and using it. It's a standard ADO.NET driver, so you should be able to follow most any C# SQL tutorials out there for additional help.

这篇关于统一使用c#访问MySQL数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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