|
|
@@ -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);
|