Skip to main content

290 posts tagged with ".NET"

.NET Framework and Core for Application Development

View All Tags

Fixed: "CREATE command denied to user" for Table '__EFMigrationsHistory' in EF Core

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

CREATE command denied to user 'inventory_app'@'172.23.0.1' for table '__EFMigrationsHistory' appeared even though that table already existed. It's what you get when dotnet ef database update runs as an app account that can only read and change rows: exactly how that account should be set up, and exactly why migrations need a different one.

Fixed: "Option not supported (Parameter ...)" from a Semicolon in a MySQL Password in .NET C#

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

Option not supported (Parameter 'def;sslmode') looked like a typo in an option name, but def was the end of my password. A ; ends a value in a connection string, so the driver read the rest of the password as a new option, and put it in the exception message. That message can end up in your logs.