

<?php
$host = '204.11.58.166:3306';
$dbname = 'service_portal';
$dbuser = 'service_user';
$dbpass = 's!iHa~l3YOs5cxf2';

echo "<pre>";
echo "HOST: " . $host . "\n";
echo "DBNAME: " . $dbname . "\n";
echo "DBUSER: " . $dbuser . "\n";
echo "DBPASS LENGTH: " . strlen($dbpass) . "\n";
echo "</pre>";

try {
    $pdo = new PDO(
        "mysql:host=$host;dbname=$dbname;charset=utf8mb4",
        $dbuser,
        $dbpass
    );
    echo "Database connected successfully";
} catch (PDOException $e) {
    die("Connection failed: " . $e->getMessage());
}
?>