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