Revert fallback to localhost for XAMPP compatibility and remove SELECT from init.sql

This commit is contained in:
Nama Kamu
2026-06-11 18:51:21 +07:00
parent 9a66562dc7
commit 2ab88784df
5 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
$host = getenv('DB_HOST') ?: 'db';
$host = getenv('DB_HOST') ?: 'localhost';
$user = getenv('DB_USER') ?: 'root';
$pass = getenv('DB_PASSWORD') ?: 'rootpassword';
$pass = getenv('DB_PASSWORD') ?: '';
$db = getenv('DB_NAME') ?: 'uas_06';
$conn = @mysqli_connect($host, $user, $pass, $db);