Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

you probably need

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

b) this (below) in your Web Configuration File

XML
<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>


(this config data goes in a connectionstrings area in the web configuration file)
 
Share this answer
 
v2
Comments
Madhav Gunjal 19-Nov-15 2:55am    
sir actually i don't think the connection string will matter and suppose it's an issue then it will come in picture later on,i have connector installed i can see the database name in visual studio but can't see the table's which are exist in database , but i can see and perform operations on tables through mysql command prompt

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900