How to connect to a MySQL Data Source in Visual Studio

前端 未结 11 2101
忘了有多久
忘了有多久 2020-11-28 09:15

I use the MySQL Connector/Net to connect to my database by referencing the assembly (MySql.Data.dll) and passing in a connection string to MySqlConnection. I

11条回答
  •  难免孤独
    2020-11-28 09:56

    1. Download MySQL Connector .NET (6.9.4 on this date) from here and install it CUSTOM!
    2. Remove the ASP.NET WEB providers option or the installer will write in machine.config!
    3. Download MySQL for Visual Studio from here and install it CUSTOM. Be sure to check the integration options. You need this step because after Connector .NET 6.7 the installer will no longer integrate the connector with Visual Studio. This installer can take longer then expected. This is it.

    You can install it from alternate download here which should have integrated with VS correctly but it did not and I got a strange error and after the reinstall it is ok.

提交回复
热议问题