Answer the question
In order to leave comments, you need to log in
ASP NET CORE EF How to connect MySQL?
Hello. I don’t know what to do anymore, I don’t change how the server still doesn’t find this connection string.
My application config:
"ConnectionStrings": {
"MainDB": "Server=sbm15yyj.beget.tech;Database=sbm15yyj_dicedev;User Id=sbm15yyj_dicedev;Password={pass};"
}
var connectionString = configuration.GetConnectionString("MainDB");
services.AddDbContext<MainContext>(op => op.UseSqlServer(connectionString));
Win32Exception: Не найден сетевой путь
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question