new path db

This commit is contained in:
Antoine BRYJA
2025-11-10 09:06:28 +01:00
parent 9320c5aeea
commit 54d8ae8c16

View File

@@ -11,7 +11,7 @@ var DB *gorm.DB
func ConnectDatabase() {
// Remplace ces valeurs par les tiennes
dsn := "root:@tcp(127.0.0.1:3306)/api-ticketing-app?charset=utf8mb4&parseTime=True&loc=Local"
dsn := "root:@tcp(127.0.0.1:3306)/api_ticketing_app?charset=utf8mb4&parseTime=True&loc=Local"
database, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
if err != nil {