【发布时间】:2013-04-11 21:05:32
【问题描述】:
我在远程托管服务提供商上有这个 Mysql 数据库。我安装了 MySql 工作台并提供以下信息:
server,
username,
pw
连接正常,但是当我尝试使用 visualstudio 时出现此错误
我正在使用来自 MySql 网站的 MySql 连接器。此外,当尝试连接 EntityFramework 中的以下连接字符串时
Server=tango.rdb.superhosting.bg;Database=ulprojec_weatheronmars;Uid=ulpro_georgi_it;Pwd=password;
我收到以下错误
An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.
我仍然可以通过 MySql 工作台执行 LINQ 等。
【问题讨论】:
-
老兄,如果你的截图是正确的,那是因为你使用Microsoft SQL Server驱动连接MySql
标签: c# mysql .net entity-framework