Revert fallback to localhost for XAMPP compatibility and remove SELECT from init.sql
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user