Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am working with a project which has MYSQL as back end i want to connect mysql with entity i tired all connector for visual studio and try with mysql for visual studio also
but mysql data source not showing in data sources list can any one help me to resolve problem

What I have tried:

HTML
<system.data>
    <dbproviderfactories>
      <add name="MY SQL Data Provider" invariant="MySql.Data.MySqlClient" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="MySql.Data.MySqlClient.MySqlClientFactory ,MySql.Data, Version=6.6.5.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      <!--<add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>-->
Posted
Updated 29-Mar-17 7:16am
v2
Comments
Traybabu 29-Mar-17 10:47am    
am using vs express web 2012

1 solution

First, your connection string is probably wrong. I can't tell because you didn't show it.

Second, you need to make sure you installed the MySQL Connector/Net 6.8.x, instructions found here[^].

Next, follow the instructions on this page[^]. It would seem that the section you did post above it wrong and in the wrong section of your app.config file.
 
Share this answer
 

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