aboutsummaryrefslogtreecommitdiff
path: root/Database
diff options
context:
space:
mode:
Diffstat (limited to 'Database')
-rw-r--r--Database/Database.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Database/Database.cs b/Database/Database.cs
index 466c304..551ca5d 100644
--- a/Database/Database.cs
+++ b/Database/Database.cs
@@ -19,7 +19,8 @@ namespace Database {
public Dictionary<string, string> Details;
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
- optionsBuilder.UseMySQL($"server=localhost;uid={Details["username"]};password={Details["password"]};database=news_aggregator");
+ base.OnConfiguring(optionsBuilder);
+ optionsBuilder.UseMySQL($"server=localhost;port=3306;user={Details["username"]};password={Details["password"]};database={Details["database"]}");
}
}
}