在不同机器上的visual studio中无法访问在不同机器上创建的mysql数据库 [英] mysql database which is created on different machine is not accessible in visual studio on different machine

查看:94
本文介绍了在不同机器上的visual studio中无法访问在不同机器上创建的mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助,

我在asp.net中使用mysql数据库完成了一个项目,我想在不同的机器上设置相同的地方,我已经在其指定的路径上复制了mysql数据库并尝试通过visual studio将项目连接到这个复制的数据库但是我只看到数据库名称表格没有在visual studio上显示但是这些表存在于数据库中我可以在mysql命令提示符下看到这些表,请帮助它的urgnt





先谢谢

need help regarding,
I have done one project in asp.net with mysql database and i want to setup the same on different machine where i have copied mysql database at it's specified path and trying to connect project to this copied database through visual studio but there i am only seeing database name the tables are not showing at visual studio but these tables are exist in database i can see these tables at mysql command prompt,Please help its urgnt


Thanks in Advance

推荐答案

你可能需要



a)MySQL网络连接器(ASP.Net机器)



b)您的Web配置文件中的这个(下面)



you probably need

a) the MySQL Dot Net Connector (ASP.Net machine)

b) this (below) in your Web Configuration File

<add name="MySqlConnectionString" connectionstring="server=tcp/ip address of MySQL DB Machine;User Id=Some User ID For DB;password=Password For User Account;database=Your Database Name">
   providerName="MySql.Data.MySqlClient" /></add>





(此配置数据位于Web配置文件的连接字符串区域中)



(this config data goes in a connectionstrings area in the web configuration file)


这篇关于在不同机器上的visual studio中无法访问在不同机器上创建的mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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