Connecting to MySql on Docker Connecting to MySql on Docker docker docker

Connecting to MySql on Docker


The provider name is not being passed. Prior to ASP.NET 5 the provider value could be set alongside connectionString in in the web.config. This is no longer the case, as the connection string is just a string value in a json file with no extra properties.

You need to set it programatically. Here's an example, notably this part;

SetProviderServices("MySql.Data.MySqlClient", new MySqlProviderServices());


I'm not an expert on ASP.NET, but doesn't your question translate to:

If I run ASP.NET on Windows everything works fine, if I run it on Linux I get an exception.

?

I don't think this is a Docker issue and would rather investigate about issues / driver needs the Entity Framework has on Mono.