© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
Tostiapparaat

❔ dotnet ef database update not working on MAC.

Hello I'm working in visual studio with .net 6, working with EF.

I'm having troubles getting my project to work. Im trying to
sudo dotnet ef database update
sudo dotnet ef database update
. I'm getting a error to error to new error 😛
The problem I'm running into are: (Errors)
- CREATE DATABASE permission denied in database 'master'
- Invalid value for key 'Trust Server Certificate'
turned on 'accept non-trusted certificates automatically in Datagrip
- Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.
ErrorCode=InternalError

My connection string:
builder.Services.AddDbContext<DomainContext>(options =>
{
    options.UseSqlServer(@"Server=.;Database=YourDatabaseName;
User ID=thomas2;Password=strongpassword2023!;
Trusted_Connection=False;
TrustServerCertificate=True
MultipleActiveResultSets=True;
Encrypt=True;

");
});
builder.Services.AddDbContext<DomainContext>(options =>
{
    options.UseSqlServer(@"Server=.;Database=YourDatabaseName;
User ID=thomas2;Password=strongpassword2023!;
Trusted_Connection=False;
TrustServerCertificate=True
MultipleActiveResultSets=True;
Encrypt=True;

");
});


simply just lost by now.. 😦 pls help
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Build failed on `dotnet-ef database update`
C#CC# / help
3y ago
database update not working
C#CC# / help
3y ago
✅ Dotnet ef problem
C#CC# / help
3mo ago
Dotnet ef command
C#CC# / help
3y ago