MySQL数据库连接 [英] Mysql database connection

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

问题描述

您好,我正在使用本地的Mysql数据库.我通过实体框架3.5从中检索数据.现在项目已经完成,我们将数据库托管在linux服务器上,现在我面临着一个关键问题.我无法使用实体框架连接到数据库.

请注意,我的应用程序在本地计算机上,数据库在远程服务器上.我想通过互联网连接到数据库.

我花了一个星期没有找到解决办法.

感谢您的帮助.

Hello, I''m working with Mysql database in local. I retreive data from it via entity frame work 3.5. Now that the project is finished, we host the database on a linux server and now i''m facing a crucial problem. I can''t connect to the database with entity framework.

Note that my application is on a local machine and the database is on a remote server. I want to connect to the database via an internet connection.

I spent a week on it without finding solution.

Thank for your help.

推荐答案

好吧,使用连接字符串 [^ ]!

上面的链接提供了有关连接字符串的所有信息.可以在这里阅读有关数据通信的更多信息:使用ADO.NET访问数据 [ ^ ]
Well, by using a Connection String[^]!

The link above provides all info about connection string. Further info regarding the data communication can be read here: Accessing data with ADO.NET[^]


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

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