Sfoglia il codice sorgente

Another fix to database.php

svalavuo 5 ore fa
parent
commit
5d6c336b95
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backend/config/database.php

+ 1 - 1
backend/config/database.php

@@ -75,7 +75,7 @@ class Database {
 
         try {
             $dsn = "mysql:host=" . $this->host . ";dbname=" . $this->db_name . ";charset=utf8mb4";
-            $connectionType = $localSocketExists ? "external (local socket failed)" : "external";
+            $connectionType = $isDockerEnvironment ? "external (Docker environment)" : "external";
             error_log("Attempting $connectionType database connection: $dsn with user " . $this->username);
             $this->conn = new PDO($dsn, $this->username, $this->password);
             $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);