kan inte ansluta till databasen
This commit is contained in:
7
db.php
7
db.php
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
function getConnection() {
|
||||
$host = getenv('DB_HOST') ?: 'localhost';
|
||||
$db = getenv('DB_NAME') ?: 'your_db_name';
|
||||
$user = getenv('DB_USER') ?: 'your_username';
|
||||
$pass = getenv('DB_PASS') ?: 'your_password';
|
||||
$port = 3308;
|
||||
$db = getenv('DB_NAME') ?: 'ai_email';
|
||||
$user = getenv('DB_USER') ?: 'root';
|
||||
$pass = getenv('DB_PASS') ?: '';
|
||||
$charset = 'utf8mb4';
|
||||
|
||||
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
|
||||
|
||||
Reference in New Issue
Block a user