Answer the question
In order to leave comments, you need to log in
MSSQL on Linux?
When trying to perform a migration dotnet ef database update
, an error occurs:
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: TCP Provider, error: 35 - An internal exception was caught)
SQL Server itself is running
[email protected] ~ $ sqlcmd -S localhost -U SA
Password:
1> use api_dev
2> go
Changed database context to 'api_dev'.
{
"ConnectionStrings": {
"DefaultConnection": "Server=sqlinux;User Id=SA;Password=UIHt782435Gnalzx;Database=api_dev;Trusted_Connection=false"
}
}
Answer the question
In order to leave comments, you need to log in
SQL Server is configured to allow remote connections
//closed.
you should have written localhost instead of sqlinux.
[email protected] ~/Templates/WebApiServer/WebApiServer $ dotnet ef database update
Applying migration '20180103044038_Initial'.
Done.
[email protected] ~/Templates/WebApiServer/WebApiServer $
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question