Error on EF migration - Azure - MySql on App
Clash Royale CLAN TAG #URR8PPP Error on EF migration - Azure - MySql on App I'm trying to run all pending migrations on my web app asp.net core 2.1 on Azure using MySql on App, free tier (always on not enabled) but I receive an error, as in the log file: "Microsoft.EntityFrameworkCore.Database.Connection: An error occurred using the connection to database '' on server '127.0.0.1:54184'" The mysql package I'm using is Pomelo.EntityFrameworkCore.MySql, version 2.1.1. I'm running this code in the Configure method of the Startup class: using (var serviceScope = app.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope()) { using (var context = serviceScope.ServiceProvider.GetService<SandroDbContext>()) { context.Database.Migrate(); } } It seems to get the correct server and port from the environment variable for MySql in App , but not the database name. UPDATE: It doesn't work even if i remove th...