I had the same problem a while ago. Unfortunately, I think the answer is random, and I canβt remember exactly what fixed it, except for playing with versions of MySQL Server and MySQL Connector / Net.
I have VS 2015, so I just tried to recreate this problem. I was not able to do this because I installed MySQL for VS 1.2.7 and Connector / Net 6.9.9 and was able to see the MySQL database as an option in the Data Sources window.
I recommend uninstalling both MySQL for VS and your Connector / Net 6.9.9, and then reinstalling them. Make sure you install MySQL for VS in front of the connector / network, as the documentation that you linked in your question says: "Always install MySQL for Visual Studio before installing MySQL Connector / Net."
You can also try using the MySQL community server instead of MySQL for VS, and use an older version of Connector / Net.
Update
Try the following:
- Remove MySQL for VS and Connector / Net.
- Install Connector / Net 6.9.9 using a typical installation. Remove the web provider feature from the installation and continue with the installation.
- Install MySQL for VS 1.2.7 using a typical installation. Make sure that the Visual Studio integration function is selected to install and complete the installation (it should be selected by default).
Update 2
If you need more alternatives to reinstall:
Try checking the properties of the machine.config file to see if the MySQL data provider property looks similar to mine by going to C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG
Check Lines:
- ltsadd name = "MySQL Data Provider" invariant = "MySql.Data.MySqlClient" description = "Net Framework Data Provider for MySQL" type = "MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version = 6.9.9.0, Culture = neutral, PublicKeyToken = XXXXXXXXX "/ gts
Also, maybe try creating a website instead of a project, or vice versa. There are several ways to get to the Data Source window. You can try to create an ADO.Net object and add a connection to see if this window displays the MySQL data source as the data source. You can also create a connection through the server explorer window. Just follow these steps .
Kyle scott
source share