From db9fd8b5df1abaac388f71e85ccba6ef8e9a0a86 Mon Sep 17 00:00:00 2001 From: Ahyan Z Date: Thu, 25 Jun 2026 17:04:24 +0100 Subject: [PATCH] Replace database config with fallback --- config.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 4f538aa..22b1275 100644 --- a/config.php +++ b/config.php @@ -11,11 +11,11 @@ ini_set('display_errors', 0); // Keep disabled in production so errors don't cor // 2. DATABASE CONFIGURATION (Aiven Cloud Connection Matrix) // ==================================================================== // Fall back to standard local development values if variables aren't injected by Vercel -$db_host = getenv('DB_HOST') ?: 'nostolgagram-nostolgagram.i.aivencloud.com'; -$db_port = getenv('DB_PORT') ?: '3306'; // Default MySQL port (Aiven will overwrite this with 23006 via Vercel) -$db_user = getenv('DB_USER') ?: 'avnadmin'; +$db_host = getenv('DB_HOST') ?: '127.0.0.1'; +$db_port = getenv('DB_PORT') ?: '3306'; +$db_user = getenv('DB_USER') ?: 'root'; $db_pass = getenv('DB_PASS') ?: ''; -$db_name = 'defaultdb'; // Aiven's default workspace name +$db_name = 'defaultdb'; try { // Open a secure database link using the fast, modern PHP Data Objects (PDO) framework